]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2972] Added explicit transaction start and commit to create schema
authorThomas Markwalder <tmark@isc.org>
Fri, 7 Jun 2013 14:09:21 +0000 (10:09 -0400)
committerThomas Markwalder <tmark@isc.org>
Fri, 7 Jun 2013 14:09:21 +0000 (10:09 -0400)
SQL statement.  This corrects a MySQL flush timing issue that causes
the checkVersion unit test to fail under some Debian VMs.

src/lib/dhcpsrv/tests/schema_copy.h

index 9ebd05715e194589ab96a33f53868bb60410fc5c..f534fa8e68a95be0b30a329056e6c6fa51e3dd85 100644 (file)
@@ -42,6 +42,7 @@ const char* destroy_statement[] = {
 // Creation of the new tables.
 
 const char* create_statement[] = {
+    "START TRANSACTION",
     "CREATE TABLE lease4 ("
         "address INT UNSIGNED PRIMARY KEY NOT NULL,"
         "hwaddr VARBINARY(20),"
@@ -84,6 +85,7 @@ const char* create_statement[] = {
         ")",
 
     "INSERT INTO schema_version VALUES (1, 0)",
+    "COMMIT",
 
     NULL
 };