Commit 6849529f authored by Thomas Markwalder's avatar Thomas Markwalder
Browse files

[2972] Added explicit transaction start and commit to create schema

SQL statement.  This corrects a MySQL flush timing issue that causes
the checkVersion unit test to fail under some Debian VMs.
parent 984abbf9
...@@ -42,6 +42,7 @@ const char* destroy_statement[] = { ...@@ -42,6 +42,7 @@ const char* destroy_statement[] = {
// Creation of the new tables. // Creation of the new tables.
const char* create_statement[] = { const char* create_statement[] = {
"START TRANSACTION",
"CREATE TABLE lease4 (" "CREATE TABLE lease4 ("
"address INT UNSIGNED PRIMARY KEY NOT NULL," "address INT UNSIGNED PRIMARY KEY NOT NULL,"
"hwaddr VARBINARY(20)," "hwaddr VARBINARY(20),"
...@@ -84,6 +85,7 @@ const char* create_statement[] = { ...@@ -84,6 +85,7 @@ const char* create_statement[] = {
")", ")",
"INSERT INTO schema_version VALUES (1, 0)", "INSERT INTO schema_version VALUES (1, 0)",
"COMMIT",
NULL NULL
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment