diff options
author | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2008-08-11 21:27:17 -0300 |
---|---|---|
committer | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2008-08-11 21:27:17 -0300 |
commit | a92cf7b6f338feb305b10d3f57c0e321862b7d7f (patch) | |
tree | 133952314408600cb62716f5ab8ba078152b422c /tests | |
parent | 52fa3fddfebd1de5c68c53d75f428090a1f48e7d (diff) | |
parent | 7d67dda7ae824c4e8172cbbc1e67699492c8f199 (diff) | |
download | mariadb-git-a92cf7b6f338feb305b10d3f57c0e321862b7d7f.tar.gz |
Merge mysql-5.0-bugteam into mysql-5.1-bugteam
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index a41d9029d70..a043b87c294 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -17600,25 +17600,28 @@ static void test_wl4166_2() static void test_bug38486(void) { - myheader("test_bug38486"); - - MYSQL_STMT *stmt; - stmt= mysql_stmt_init(mysql); - unsigned long type= CURSOR_TYPE_READ_ONLY; - mysql_stmt_attr_set(stmt, STMT_ATTR_CURSOR_TYPE, (void*)&type); - const char *sql= "CREATE TABLE t1 (a INT)"; - mysql_stmt_prepare(stmt,sql,strlen(sql)); - - mysql_stmt_execute(stmt); - mysql_stmt_close(stmt); - - stmt= mysql_stmt_init(mysql); - mysql_stmt_attr_set(stmt, STMT_ATTR_CURSOR_TYPE, (void*)&type); - const char *sql2= "INSERT INTO t1 VALUES (1)"; - mysql_stmt_prepare(stmt,sql2,strlen(sql2)); - mysql_stmt_execute(stmt); - - mysql_stmt_close(stmt); + MYSQL_STMT *stmt; + const char *stmt_text; + unsigned long type= CURSOR_TYPE_READ_ONLY; + + DBUG_ENTER("test_bug38486"); + myheader("test_bug38486"); + + stmt= mysql_stmt_init(mysql); + mysql_stmt_attr_set(stmt, STMT_ATTR_CURSOR_TYPE, (void*)&type); + stmt_text= "CREATE TABLE t1 (a INT)"; + mysql_stmt_prepare(stmt, stmt_text, strlen(stmt_text)); + mysql_stmt_execute(stmt); + mysql_stmt_close(stmt); + + stmt= mysql_stmt_init(mysql); + mysql_stmt_attr_set(stmt, STMT_ATTR_CURSOR_TYPE, (void*)&type); + stmt_text= "INSERT INTO t1 VALUES (1)"; + mysql_stmt_prepare(stmt, stmt_text, strlen(stmt_text)); + mysql_stmt_execute(stmt); + mysql_stmt_close(stmt); + + DBUG_VOID_RETURN; } /* |