Commit 264aaf11 authored by unknown's avatar unknown

Added test suite for the LP BUG#885162 (fixed by the patch for LP BUG#859375 and LP BUG#887458).

parent cdde6187
......@@ -5748,6 +5748,21 @@ b a b
set @@join_cache_level= @save_join_cache_level;
drop table t1,t2;
#
# LP bug #885162 Got error 124 from storage engine with UNION inside
# subquery and join_cache_level=3..8
# (IN/ALL/ANY optimizations should not be applied to fake_select)
#
CREATE TABLE t1 (
f1 varchar(1) DEFAULT NULL
);
INSERT INTO t1 VALUES ('c');
set @save_join_cache_level=@@join_cache_level;
SET SESSION join_cache_level=8;
SELECT * FROM t1 WHERE t1.f1 IN ( SELECT 'k' UNION SELECT 'e' );
f1
set @@join_cache_level= @save_join_cache_level;
drop table t1;
#
# LP BUG#747278 incorrect values of the NULL (no rows) single
# row subquery requested via element_index() interface
#
......
......@@ -5747,6 +5747,21 @@ b a b
set @@join_cache_level= @save_join_cache_level;
drop table t1,t2;
#
# LP bug #885162 Got error 124 from storage engine with UNION inside
# subquery and join_cache_level=3..8
# (IN/ALL/ANY optimizations should not be applied to fake_select)
#
CREATE TABLE t1 (
f1 varchar(1) DEFAULT NULL
);
INSERT INTO t1 VALUES ('c');
set @save_join_cache_level=@@join_cache_level;
SET SESSION join_cache_level=8;
SELECT * FROM t1 WHERE t1.f1 IN ( SELECT 'k' UNION SELECT 'e' );
f1
set @@join_cache_level= @save_join_cache_level;
drop table t1;
#
# LP BUG#747278 incorrect values of the NULL (no rows) single
# row subquery requested via element_index() interface
#
......
......@@ -5743,6 +5743,21 @@ b a b
set @@join_cache_level= @save_join_cache_level;
drop table t1,t2;
#
# LP bug #885162 Got error 124 from storage engine with UNION inside
# subquery and join_cache_level=3..8
# (IN/ALL/ANY optimizations should not be applied to fake_select)
#
CREATE TABLE t1 (
f1 varchar(1) DEFAULT NULL
);
INSERT INTO t1 VALUES ('c');
set @save_join_cache_level=@@join_cache_level;
SET SESSION join_cache_level=8;
SELECT * FROM t1 WHERE t1.f1 IN ( SELECT 'k' UNION SELECT 'e' );
f1
set @@join_cache_level= @save_join_cache_level;
drop table t1;
#
# LP BUG#747278 incorrect values of the NULL (no rows) single
# row subquery requested via element_index() interface
#
......
......@@ -5752,6 +5752,21 @@ b a b
set @@join_cache_level= @save_join_cache_level;
drop table t1,t2;
#
# LP bug #885162 Got error 124 from storage engine with UNION inside
# subquery and join_cache_level=3..8
# (IN/ALL/ANY optimizations should not be applied to fake_select)
#
CREATE TABLE t1 (
f1 varchar(1) DEFAULT NULL
);
INSERT INTO t1 VALUES ('c');
set @save_join_cache_level=@@join_cache_level;
SET SESSION join_cache_level=8;
SELECT * FROM t1 WHERE t1.f1 IN ( SELECT 'k' UNION SELECT 'e' );
f1
set @@join_cache_level= @save_join_cache_level;
drop table t1;
#
# LP BUG#747278 incorrect values of the NULL (no rows) single
# row subquery requested via element_index() interface
#
......
......@@ -5743,6 +5743,21 @@ b a b
set @@join_cache_level= @save_join_cache_level;
drop table t1,t2;
#
# LP bug #885162 Got error 124 from storage engine with UNION inside
# subquery and join_cache_level=3..8
# (IN/ALL/ANY optimizations should not be applied to fake_select)
#
CREATE TABLE t1 (
f1 varchar(1) DEFAULT NULL
);
INSERT INTO t1 VALUES ('c');
set @save_join_cache_level=@@join_cache_level;
SET SESSION join_cache_level=8;
SELECT * FROM t1 WHERE t1.f1 IN ( SELECT 'k' UNION SELECT 'e' );
f1
set @@join_cache_level= @save_join_cache_level;
drop table t1;
#
# LP BUG#747278 incorrect values of the NULL (no rows) single
# row subquery requested via element_index() interface
#
......
......@@ -4855,6 +4855,24 @@ WHERE t2.b IN (
set @@join_cache_level= @save_join_cache_level;
drop table t1,t2;
--echo #
--echo # LP bug #885162 Got error 124 from storage engine with UNION inside
--echo # subquery and join_cache_level=3..8
--echo # (IN/ALL/ANY optimizations should not be applied to fake_select)
--echo #
CREATE TABLE t1 (
f1 varchar(1) DEFAULT NULL
);
INSERT INTO t1 VALUES ('c');
set @save_join_cache_level=@@join_cache_level;
SET SESSION join_cache_level=8;
SELECT * FROM t1 WHERE t1.f1 IN ( SELECT 'k' UNION SELECT 'e' );
set @@join_cache_level= @save_join_cache_level;
drop table t1;
--echo #
--echo # LP BUG#747278 incorrect values of the NULL (no rows) single
--echo # row subquery requested via element_index() interface
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment