mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 192.168.0.10:mysql/mysql-5.0-maint
into pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
This commit is contained in:
@ -15531,6 +15531,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
|
||||
@ -15811,6 +15838,7 @@ static struct my_tests_st my_tests[]= {
|
||||
{ "test_bug15518", test_bug15518 },
|
||||
{ "test_bug23383", test_bug23383 },
|
||||
{ "test_bug21635", test_bug21635 },
|
||||
{ "test_bug24179", test_bug24179 },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user