mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into bodhi.local:/opt/local/work/mysql-5.1-runtime
This commit is contained in:
@@ -2946,10 +2946,9 @@ bool Prepared_statement::execute(String *expanded_query, bool open_cursor)
|
||||
in INSERT ... SELECT and similar commands.
|
||||
*/
|
||||
|
||||
if (open_cursor && lex->result && !lex->result->simple_select())
|
||||
if (open_cursor && lex->result && lex->result->check_simple_select())
|
||||
{
|
||||
DBUG_PRINT("info",("Cursor asked for not SELECT stmt"));
|
||||
my_error(ER_SP_BAD_CURSOR_QUERY, MYF(0));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user