summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormalff/marcsql@weblab.(none) <>2007-01-02 14:18:13 -0700
committermalff/marcsql@weblab.(none) <>2007-01-02 14:18:13 -0700
commit0055056c91426b11be40a70902230ef5d0dcdcdd (patch)
tree1a43bc5c6b21902a943e0a8759f9f36c9c407c1c /tests
parent60a3f102a475fc38dc0efcd1519b3385a39fb752 (diff)
parentc55862698ebc7aafdfeeba47170c9f7b89b66eec (diff)
downloadmariadb-git-0055056c91426b11be40a70902230ef5d0dcdcdd.tar.gz
Merge weblab.(none):/home/marcsql/TREE/mysql-5.1-base
into weblab.(none):/home/marcsql/TREE/mysql-5.1-merge
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index a00b5414101..e239400873f 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -15683,6 +15683,33 @@ static void test_bug21635()
DBUG_VOID_RETURN;
}
+/*
+ Bug#24179 "select b into $var" fails with --cursor_protocol"
+ The failure is correct, check that the returned message is meaningful.
+*/
+
+static void test_bug24179()
+{
+ int rc;
+ MYSQL_STMT *stmt;
+
+ DBUG_ENTER("test_bug24179");
+ myheader("test_bug24179");
+
+ stmt= open_cursor("select 1 into @a");
+ rc= mysql_stmt_execute(stmt);
+ DIE_UNLESS(rc);
+ if (!opt_silent)
+ {
+ printf("Got error (as expected): %d %s\n",
+ mysql_stmt_errno(stmt),
+ mysql_stmt_error(stmt));
+ }
+ DIE_UNLESS(mysql_stmt_errno(stmt) == 1323);
+
+ DBUG_VOID_RETURN;
+}
+
/*
Read and parse arguments and MySQL options from my.cnf
@@ -15965,6 +15992,7 @@ static struct my_tests_st my_tests[]= {
{ "test_bug23383", test_bug23383 },
{ "test_bug21635", test_bug21635 },
{ "test_status", test_status},
+ { "test_bug24179", test_bug24179 },
{ 0, 0 }
};