1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Fix for travis tests:

Older server versions don't support CREATE or REPLACE syntax.
This commit is contained in:
Georg Richter
2018-07-03 11:22:31 +02:00
parent a0d4b422bd
commit dc50976e36

View File

@@ -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);