diff options
author | unknown <kostja@bodhi.local> | 2007-01-11 21:59:28 +0300 |
---|---|---|
committer | unknown <kostja@bodhi.local> | 2007-01-11 21:59:28 +0300 |
commit | 6ab5bdf311f88391e82843fdceb77e8a3ba543bb (patch) | |
tree | 1e195159c577862500f5d2ce9d16857b349b37ae /tests | |
parent | 50361d9a44ddce3d0253feba9c658a17b2b0a517 (diff) | |
parent | 21311e992de836763ff81064b05eb01114aedc13 (diff) | |
download | mariadb-git-6ab5bdf311f88391e82843fdceb77e8a3ba543bb.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into bodhi.local:/opt/local/work/mysql-5.0-runtime
heap/hp_block.c:
Auto merged
mysql-test/r/view.result:
Auto merged
server-tools/instance-manager/listener.cc:
Auto merged
sql/item_func.cc:
Auto merged
sql/sp_head.cc:
Auto merged
sql/sp_head.h:
Auto merged
sql/sql_class.cc:
Auto merged
sql/sql_class.h:
Auto merged
sql/sql_lex.cc:
Auto merged
sql/sql_lex.h:
Auto merged
sql/sql_prepare.cc:
Auto merged
sql/sql_string.cc:
Auto merged
sql/sql_yacc.yy:
Auto merged
tests/mysql_client_test.c:
Auto merged
heap/hp_write.c:
SCCS merged
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index 9e3b5bfe10e..848eedc7a3f 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -15455,6 +15455,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 @@ -15734,6 +15761,7 @@ static struct my_tests_st my_tests[]= { { "test_bug21726", test_bug21726 }, { "test_bug23383", test_bug23383 }, { "test_bug21635", test_bug21635 }, + { "test_bug24179", test_bug24179 }, { 0, 0 } }; |