From 2ca0c22fd36c1b34115352e22c5f6b7d23c2c04a Mon Sep 17 00:00:00 2001 From: diego Dupin Date: Tue, 31 Aug 2021 19:02:43 +0200 Subject: [PATCH] correct test after 3.1 merge --- unittest/libmariadb/cursor.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unittest/libmariadb/cursor.c b/unittest/libmariadb/cursor.c index 25db1781..332202dc 100644 --- a/unittest/libmariadb/cursor.c +++ b/unittest/libmariadb/cursor.c @@ -1488,7 +1488,10 @@ static int test_bug38486(MYSQL *mysql) int rc; unsigned long type= CURSOR_TYPE_READ_ONLY; - rc= mysql_query(mysql, "CREATE TEMPORARY TABLE t10 (a INT)"); + rc= mysql_query(mysql, "DROP TABLE IF EXISTS t10"); + check_mysql_rc(rc, mysql); + + rc= mysql_query(mysql, "CREATE TABLE t10 (a INT)"); check_mysql_rc(rc, mysql); stmt= mysql_stmt_init(mysql); @@ -1503,9 +1506,6 @@ static int test_bug38486(MYSQL *mysql) check_mysql_rc(rc, mysql); mysql_stmt_close(stmt); - rc= mysql_query(mysql, "DROP TABLE t10"); - check_mysql_rc(rc, mysql); - return OK; }