mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/media/sda1/mysql/mysql-4.1-hook sql/item.cc: Auto merged sql/item.h: Auto merged sql/sql_select.cc: Auto merged
This commit is contained in:
@ -308,3 +308,13 @@ execute stmt using @a, @a;
|
||||
a
|
||||
drop table t1;
|
||||
deallocate prepare stmt;
|
||||
create table t1 (a int);
|
||||
prepare stmt from "select * from t1 where 1 > (1 in (SELECT * FROM t1))";
|
||||
execute stmt;
|
||||
a
|
||||
execute stmt;
|
||||
a
|
||||
execute stmt;
|
||||
a
|
||||
drop table t1;
|
||||
deallocate prepare stmt;
|
||||
|
@ -329,3 +329,17 @@ execute stmt using @a, @a;
|
||||
drop table t1;
|
||||
deallocate prepare stmt;
|
||||
|
||||
#
|
||||
# Bug #5987 subselect in bool function crashes server (prepared statements):
|
||||
# don't overwrite transformed subselects with old arguments of a bool
|
||||
# function.
|
||||
#
|
||||
create table t1 (a int);
|
||||
prepare stmt from "select * from t1 where 1 > (1 in (SELECT * FROM t1))";
|
||||
execute stmt;
|
||||
execute stmt;
|
||||
execute stmt;
|
||||
drop table t1;
|
||||
deallocate prepare stmt;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user