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; }