From: Chris Hofstaedtler Date: Tue, 22 May 2018 12:12:41 +0000 (+0200) Subject: gmysql: Use future-proof statement for transaction isolation X-Git-Tag: dnsdist-1.3.1~75^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c11d8368ddc369ff8473dbcb619b17b6a1cf7e38;p=thirdparty%2Fpdns.git gmysql: Use future-proof statement for transaction isolation --- diff --git a/modules/gmysqlbackend/smysql.cc b/modules/gmysqlbackend/smysql.cc index 4fee28f6bf..50cd924005 100644 --- a/modules/gmysqlbackend/smysql.cc +++ b/modules/gmysqlbackend/smysql.cc @@ -427,7 +427,7 @@ void SMySQL::connect() #endif if (d_setIsolation && (retry == 1)) - mysql_options(&d_db, MYSQL_INIT_COMMAND,"SET SESSION tx_isolation='READ-COMMITTED'"); + mysql_options(&d_db, MYSQL_INIT_COMMAND,"SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED"); mysql_options(&d_db, MYSQL_READ_DEFAULT_GROUP, d_group.c_str());