]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1428] Fixed read only tests in MySQL and PgSQL
authorMarcin Siodelski <marcin@isc.org>
Fri, 2 Oct 2020 17:40:56 +0000 (19:40 +0200)
committerMarcin Siodelski <marcin@isc.org>
Mon, 5 Oct 2020 13:14:58 +0000 (13:14 +0000)
Per review comments.

src/lib/dhcpsrv/mysql_host_data_source.cc
src/lib/dhcpsrv/pgsql_host_data_source.cc

index fb19fac700e3d1203fb11104a38dce3f3d8a13b3..2306cb9632fc059fad9f9bcbfd1a7e68af6e8f03 100644 (file)
@@ -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.
     ///
index c14312a21bd84121593d38feb4979d0c3de5e902..154ae7d305035684cb6f1d2060490866731f7bf3 100644 (file)
@@ -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.
     ///