From dc50976e36c067c465cfbadc90288f934a80388f Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Tue, 3 Jul 2018 11:22:31 +0200 Subject: [PATCH] Fix for travis tests: Older server versions don't support CREATE or REPLACE syntax. --- unittest/libmariadb/ps_bugs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/unittest/libmariadb/ps_bugs.c b/unittest/libmariadb/ps_bugs.c index c25e2ff6..fd931ed5 100644 --- a/unittest/libmariadb/ps_bugs.c +++ b/unittest/libmariadb/ps_bugs.c @@ -4757,7 +4757,10 @@ static int test_conc344(MYSQL *mysql) MYSQL_STMT *stmt= mysql_stmt_init(mysql); int rc; - rc= mysql_query(mysql, "CREATE OR REPLACE TABLE t1 (a int, b int)"); + rc= mysql_query(mysql, "DROP TABLE IF EXISTS t1"); + check_mysql_rc(rc, mysql); + + rc= mysql_query(mysql, "CREATE TABLE t1 (a int, b int)"); check_mysql_rc(rc, mysql); rc= mysql_query(mysql, "INSERT INTO t1 VALUES (1,1), (2,2),(3,3),(4,4),(5,5)"); check_mysql_rc(rc, mysql);