summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authoranozdrin/alik@quad.opbmk <>2008-03-18 14:13:33 +0300
committeranozdrin/alik@quad.opbmk <>2008-03-18 14:13:33 +0300
commita40867702c72ebc1a93667bd65c39648083d4e29 (patch)
tree398d9845d3f4907e178e4beb5ced91c287f5f9c0 /tests
parentfa6ed3cf36c7bf98b5f0c5476bc1ced1a3b78b2c (diff)
parent50c37672a757900f8812de0b3c2da50249ed69a2 (diff)
downloadmariadb-git-a40867702c72ebc1a93667bd65c39648083d4e29.tar.gz
Merge quad.opbmk:/mnt/raid/alik/MySQL/devel/5.0-rt
into quad.opbmk:/mnt/raid/alik/MySQL/devel/5.1-rt-merged
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c87
1 files changed, 0 insertions, 87 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index a50d9d74aaf..02faf88a6e7 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -16611,92 +16611,6 @@ static void test_bug27592()
DBUG_VOID_RETURN;
}
-
-/**
- Bug#29948 autoreconnect + prepared statements + kill seems unstable
-*/
-
-static void test_bug29948()
-{
- MYSQL *dbc=NULL;
- MYSQL_STMT *stmt=NULL;
- MYSQL_BIND bind;
-
- int res=0;
- my_bool auto_reconnect=1, error=0, is_null=0;
- char kill_buf[20];
- const char *query;
- int buf;
- unsigned long length, cursor_type;
-
- DBUG_ENTER("test_bug29948");
- myheader("test_bug29948");
-
- dbc = mysql_init(NULL);
- DIE_UNLESS(dbc);
-
- mysql_options(dbc, MYSQL_OPT_RECONNECT, (char*)&auto_reconnect);
- if (!mysql_real_connect(dbc, opt_host, opt_user,
- opt_password, current_db, opt_port,
- opt_unix_socket,
- (CLIENT_FOUND_ROWS | CLIENT_MULTI_STATEMENTS |
- CLIENT_MULTI_RESULTS)))
- {
- printf("connection failed: %s (%d)", mysql_error(dbc),
- mysql_errno(dbc));
- exit(1);
- }
-
- bind.buffer_type= MYSQL_TYPE_LONG;
- bind.buffer= (char *)&buf;
- bind.is_null= &is_null;
- bind.error= &error;
- bind.length= &length;
-
- res= mysql_query(dbc, "DROP TABLE IF EXISTS t1");
- myquery(res);
- res= mysql_query(dbc, "CREATE TABLE t1 (a INT)");
- myquery(res);
- res= mysql_query(dbc, "INSERT INTO t1 VALUES(1)");
- myquery(res);
-
- stmt= mysql_stmt_init(dbc);
- check_stmt(stmt);
-
- cursor_type= CURSOR_TYPE_READ_ONLY;
- res= mysql_stmt_attr_set(stmt, STMT_ATTR_CURSOR_TYPE, (void *)&cursor_type);
- myquery(res);
-
- query= "SELECT * FROM t1 WHERE a=?";
- res= mysql_stmt_prepare(stmt, query, strlen(query));
- myquery(res);
-
- res= mysql_stmt_bind_param(stmt, &bind);
- myquery(res);
-
- res= mysql_stmt_execute(stmt);
- check_execute(stmt, res);
-
- res= mysql_stmt_bind_result(stmt,&bind);
- check_execute(stmt, res);
-
- my_snprintf(kill_buf, sizeof(kill_buf), "KILL %ld", dbc->thread_id);
- res= mysql_query(dbc, kill_buf);
- myquery(res);
-
- res= mysql_stmt_store_result(stmt);
- DIE_UNLESS(res);
-
- mysql_stmt_free_result(stmt);
- mysql_stmt_close(stmt);
-
- res= mysql_query(dbc, "DROP TABLE t1");
- myquery(res);
-
- mysql_close(dbc);
-}
-
-
/*
Bug#29687 mysql_stmt_store_result memory leak in libmysqld
*/
@@ -17735,7 +17649,6 @@ static struct my_tests_st my_tests[]= {
{ "test_bug28505", test_bug28505 },
{ "test_bug28934", test_bug28934 },
{ "test_bug27592", test_bug27592 },
- { "test_bug29948", test_bug29948 },
{ "test_bug29687", test_bug29687 },
{ "test_bug29692", test_bug29692 },
{ "test_bug29306", test_bug29306 },