From: Marcin Siodelski Date: Fri, 2 Oct 2020 17:40:56 +0000 (+0200) Subject: [#1428] Fixed read only tests in MySQL and PgSQL X-Git-Tag: Kea-1.9.1~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6a3f838813ae58ebc2f3948d0fd1cbf7ebd626e;p=thirdparty%2Fkea.git [#1428] Fixed read only tests in MySQL and PgSQL Per review comments. --- diff --git a/src/lib/dhcpsrv/mysql_host_data_source.cc b/src/lib/dhcpsrv/mysql_host_data_source.cc index fb19fac700..2306cb9632 100644 --- a/src/lib/dhcpsrv/mysql_host_data_source.cc +++ b/src/lib/dhcpsrv/mysql_host_data_source.cc @@ -2048,7 +2048,7 @@ public: /// This value is used to mark border line between queries and other /// statements and statements performing write operation on the database, /// such as INSERT, DELETE, UPDATE. - static const StatementIndex WRITE_STMTS_BEGIN = INSERT_HOST_UNIQUE_IP; + static const StatementIndex WRITE_STMTS_BEGIN = INSERT_HOST_NON_UNIQUE_IP; /// @brief Constructor. /// diff --git a/src/lib/dhcpsrv/pgsql_host_data_source.cc b/src/lib/dhcpsrv/pgsql_host_data_source.cc index c14312a21b..154ae7d305 100644 --- a/src/lib/dhcpsrv/pgsql_host_data_source.cc +++ b/src/lib/dhcpsrv/pgsql_host_data_source.cc @@ -1410,7 +1410,7 @@ public: /// This value is used to mark border line between queries and other /// statements and statements performing write operation on the database, /// such as INSERT, DELETE, UPDATE. - static const StatementIndex WRITE_STMTS_BEGIN = INSERT_HOST_UNIQUE_IP; + static const StatementIndex WRITE_STMTS_BEGIN = INSERT_HOST_NON_UNIQUE_IP; /// @brief Constructor. ///