summaryrefslogtreecommitdiff
path: root/tests/mysql_client_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mysql_client_test.c')
-rw-r--r--tests/mysql_client_test.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index a0b18f1f717..95fc61f2b72 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -17691,7 +17691,8 @@ static void test_bug43560(void)
const char* values[] = {"eins", "zwei", "drei", "viele", NULL};
const char insert_str[] = "INSERT INTO t1 (c2) VALUES (?)";
unsigned long length;
-
+ const unsigned int drop_db= opt_drop_db;
+
DBUG_ENTER("test_bug43560");
myheader("test_bug43560");
@@ -17756,9 +17757,11 @@ static void test_bug43560(void)
rc= mysql_stmt_execute(stmt);
DIE_UNLESS(rc && mysql_stmt_errno(stmt) == CR_SERVER_LOST);
- client_disconnect(conn, 0);
+ opt_drop_db= 0;
+ client_disconnect(conn);
rc= mysql_query(mysql, "DROP TABLE t1");
myquery(rc);
+ opt_drop_db= drop_db;
DBUG_VOID_RETURN;
}
@@ -18548,7 +18551,7 @@ static void test_progress_reporting()
myquery(rc);
rc= mysql_query(conn, "set @@global.progress_report_time=@save");
myquery(rc);
- client_disconnect(conn, 0);
+ mysql_close(conn);
}