Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
264aaf11
Commit
264aaf11
authored
Nov 29, 2011
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test suite for the LP BUG#885162 (fixed by the patch for LP BUG#859375 and LP BUG#887458).
parent
cdde6187
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
93 additions
and
0 deletions
+93
-0
mysql-test/r/subselect.result
mysql-test/r/subselect.result
+15
-0
mysql-test/r/subselect_no_mat.result
mysql-test/r/subselect_no_mat.result
+15
-0
mysql-test/r/subselect_no_opts.result
mysql-test/r/subselect_no_opts.result
+15
-0
mysql-test/r/subselect_no_scache.result
mysql-test/r/subselect_no_scache.result
+15
-0
mysql-test/r/subselect_no_semijoin.result
mysql-test/r/subselect_no_semijoin.result
+15
-0
mysql-test/t/subselect.test
mysql-test/t/subselect.test
+18
-0
No files found.
mysql-test/r/subselect.result
View file @
264aaf11
...
...
@@ -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
#
...
...
mysql-test/r/subselect_no_mat.result
View file @
264aaf11
...
...
@@ -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
#
...
...
mysql-test/r/subselect_no_opts.result
View file @
264aaf11
...
...
@@ -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
#
...
...
mysql-test/r/subselect_no_scache.result
View file @
264aaf11
...
...
@@ -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
#
...
...
mysql-test/r/subselect_no_semijoin.result
View file @
264aaf11
...
...
@@ -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
#
...
...
mysql-test/t/subselect.test
View file @
264aaf11
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment