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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ae23d4c9
Commit
ae23d4c9
authored
Sep 05, 2011
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge LP BUG#780386 5.2->5.3 (where other fix was present)
parents
fe7ed96a
8b062c1f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
111 additions
and
111 deletions
+111
-111
mysql-test/r/subselect.result
mysql-test/r/subselect.result
+19
-19
mysql-test/r/subselect_no_mat.result
mysql-test/r/subselect_no_mat.result
+19
-19
mysql-test/r/subselect_no_opts.result
mysql-test/r/subselect_no_opts.result
+19
-19
mysql-test/r/subselect_no_semijoin.result
mysql-test/r/subselect_no_semijoin.result
+19
-19
mysql-test/r/subselect_scache.result
mysql-test/r/subselect_scache.result
+19
-19
mysql-test/t/subselect.test
mysql-test/t/subselect.test
+16
-16
No files found.
mysql-test/r/subselect.result
View file @
ae23d4c9
...
...
@@ -5379,6 +5379,25 @@ a
SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
a
drop table t1;
#
# Fix of LP BUG#780386 (NULL left part with empty ALL subquery).
#
CREATE TABLE t1 ( f11 int) ;
INSERT IGNORE INTO t1 VALUES (0),(0);
CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3)) ;
INSERT IGNORE INTO t2 VALUES (NULL,NULL),(5,0);
DROP TABLE IF EXISTS t3;
Warnings:
Note 1051 Unknown table 't3'
CREATE TABLE t3 ( f3 int) ;
INSERT INTO t3 VALUES (0),(0);
SELECT a1.f3 AS r FROM t2 AS a1 , t1 WHERE a1.f3 < ALL ( SELECT f3 FROM t3 WHERE f3 = 1 ) ;
r
NULL
5
NULL
5
DROP TABLE t1, t2, t3;
End of 5.2 tests
#
# BUG#779885: Crash in eliminate_item_equal with materialization=on in
...
...
@@ -5402,25 +5421,6 @@ ON t2.f10 = t3.f10
f1
DROP TABLE t1,t2,t3;
#
# Fix of LP BUG#780386 (NULL left part with empty ALL subquery).
#
CREATE TABLE t1 ( f11 int) ;
INSERT IGNORE INTO t1 VALUES (0),(0);
CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3)) ;
INSERT IGNORE INTO t2 VALUES (NULL,NULL),(5,0);
DROP TABLE IF EXISTS t3;
Warnings:
Note 1051 Unknown table 't3'
CREATE TABLE t3 ( f3 int) ;
INSERT INTO t3 VALUES (0),(0);
SELECT a1.f3 AS r FROM t2 AS a1 , t1 WHERE a1.f3 < ALL ( SELECT f3 FROM t3 WHERE f3 = 1 ) ;
r
NULL
5
NULL
5
DROP TABLE t1, t2, t3;
#
# BUG LP:813473: Wrong result with outer join + NOT IN subquery
# This bug is a duplicate of Bug#11764086 whose test case is added below
#
...
...
mysql-test/r/subselect_no_mat.result
View file @
ae23d4c9
...
...
@@ -5384,6 +5384,25 @@ a
SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
a
drop table t1;
#
# Fix of LP BUG#780386 (NULL left part with empty ALL subquery).
#
CREATE TABLE t1 ( f11 int) ;
INSERT IGNORE INTO t1 VALUES (0),(0);
CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3)) ;
INSERT IGNORE INTO t2 VALUES (NULL,NULL),(5,0);
DROP TABLE IF EXISTS t3;
Warnings:
Note 1051 Unknown table 't3'
CREATE TABLE t3 ( f3 int) ;
INSERT INTO t3 VALUES (0),(0);
SELECT a1.f3 AS r FROM t2 AS a1 , t1 WHERE a1.f3 < ALL ( SELECT f3 FROM t3 WHERE f3 = 1 ) ;
r
NULL
5
NULL
5
DROP TABLE t1, t2, t3;
End of 5.2 tests
#
# BUG#779885: Crash in eliminate_item_equal with materialization=on in
...
...
@@ -5407,25 +5426,6 @@ ON t2.f10 = t3.f10
f1
DROP TABLE t1,t2,t3;
#
# Fix of LP BUG#780386 (NULL left part with empty ALL subquery).
#
CREATE TABLE t1 ( f11 int) ;
INSERT IGNORE INTO t1 VALUES (0),(0);
CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3)) ;
INSERT IGNORE INTO t2 VALUES (NULL,NULL),(5,0);
DROP TABLE IF EXISTS t3;
Warnings:
Note 1051 Unknown table 't3'
CREATE TABLE t3 ( f3 int) ;
INSERT INTO t3 VALUES (0),(0);
SELECT a1.f3 AS r FROM t2 AS a1 , t1 WHERE a1.f3 < ALL ( SELECT f3 FROM t3 WHERE f3 = 1 ) ;
r
NULL
5
NULL
5
DROP TABLE t1, t2, t3;
#
# BUG LP:813473: Wrong result with outer join + NOT IN subquery
# This bug is a duplicate of Bug#11764086 whose test case is added below
#
...
...
mysql-test/r/subselect_no_opts.result
View file @
ae23d4c9
...
...
@@ -5380,6 +5380,25 @@ a
SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
a
drop table t1;
#
# Fix of LP BUG#780386 (NULL left part with empty ALL subquery).
#
CREATE TABLE t1 ( f11 int) ;
INSERT IGNORE INTO t1 VALUES (0),(0);
CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3)) ;
INSERT IGNORE INTO t2 VALUES (NULL,NULL),(5,0);
DROP TABLE IF EXISTS t3;
Warnings:
Note 1051 Unknown table 't3'
CREATE TABLE t3 ( f3 int) ;
INSERT INTO t3 VALUES (0),(0);
SELECT a1.f3 AS r FROM t2 AS a1 , t1 WHERE a1.f3 < ALL ( SELECT f3 FROM t3 WHERE f3 = 1 ) ;
r
NULL
5
NULL
5
DROP TABLE t1, t2, t3;
End of 5.2 tests
#
# BUG#779885: Crash in eliminate_item_equal with materialization=on in
...
...
@@ -5403,25 +5422,6 @@ ON t2.f10 = t3.f10
f1
DROP TABLE t1,t2,t3;
#
# Fix of LP BUG#780386 (NULL left part with empty ALL subquery).
#
CREATE TABLE t1 ( f11 int) ;
INSERT IGNORE INTO t1 VALUES (0),(0);
CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3)) ;
INSERT IGNORE INTO t2 VALUES (NULL,NULL),(5,0);
DROP TABLE IF EXISTS t3;
Warnings:
Note 1051 Unknown table 't3'
CREATE TABLE t3 ( f3 int) ;
INSERT INTO t3 VALUES (0),(0);
SELECT a1.f3 AS r FROM t2 AS a1 , t1 WHERE a1.f3 < ALL ( SELECT f3 FROM t3 WHERE f3 = 1 ) ;
r
NULL
5
NULL
5
DROP TABLE t1, t2, t3;
#
# BUG LP:813473: Wrong result with outer join + NOT IN subquery
# This bug is a duplicate of Bug#11764086 whose test case is added below
#
...
...
mysql-test/r/subselect_no_semijoin.result
View file @
ae23d4c9
...
...
@@ -5380,6 +5380,25 @@ a
SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
a
drop table t1;
#
# Fix of LP BUG#780386 (NULL left part with empty ALL subquery).
#
CREATE TABLE t1 ( f11 int) ;
INSERT IGNORE INTO t1 VALUES (0),(0);
CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3)) ;
INSERT IGNORE INTO t2 VALUES (NULL,NULL),(5,0);
DROP TABLE IF EXISTS t3;
Warnings:
Note 1051 Unknown table 't3'
CREATE TABLE t3 ( f3 int) ;
INSERT INTO t3 VALUES (0),(0);
SELECT a1.f3 AS r FROM t2 AS a1 , t1 WHERE a1.f3 < ALL ( SELECT f3 FROM t3 WHERE f3 = 1 ) ;
r
NULL
5
NULL
5
DROP TABLE t1, t2, t3;
End of 5.2 tests
#
# BUG#779885: Crash in eliminate_item_equal with materialization=on in
...
...
@@ -5403,25 +5422,6 @@ ON t2.f10 = t3.f10
f1
DROP TABLE t1,t2,t3;
#
# Fix of LP BUG#780386 (NULL left part with empty ALL subquery).
#
CREATE TABLE t1 ( f11 int) ;
INSERT IGNORE INTO t1 VALUES (0),(0);
CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3)) ;
INSERT IGNORE INTO t2 VALUES (NULL,NULL),(5,0);
DROP TABLE IF EXISTS t3;
Warnings:
Note 1051 Unknown table 't3'
CREATE TABLE t3 ( f3 int) ;
INSERT INTO t3 VALUES (0),(0);
SELECT a1.f3 AS r FROM t2 AS a1 , t1 WHERE a1.f3 < ALL ( SELECT f3 FROM t3 WHERE f3 = 1 ) ;
r
NULL
5
NULL
5
DROP TABLE t1, t2, t3;
#
# BUG LP:813473: Wrong result with outer join + NOT IN subquery
# This bug is a duplicate of Bug#11764086 whose test case is added below
#
...
...
mysql-test/r/subselect_scache.result
View file @
ae23d4c9
...
...
@@ -5383,6 +5383,25 @@ a
SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
a
drop table t1;
#
# Fix of LP BUG#780386 (NULL left part with empty ALL subquery).
#
CREATE TABLE t1 ( f11 int) ;
INSERT IGNORE INTO t1 VALUES (0),(0);
CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3)) ;
INSERT IGNORE INTO t2 VALUES (NULL,NULL),(5,0);
DROP TABLE IF EXISTS t3;
Warnings:
Note 1051 Unknown table 't3'
CREATE TABLE t3 ( f3 int) ;
INSERT INTO t3 VALUES (0),(0);
SELECT a1.f3 AS r FROM t2 AS a1 , t1 WHERE a1.f3 < ALL ( SELECT f3 FROM t3 WHERE f3 = 1 ) ;
r
NULL
5
NULL
5
DROP TABLE t1, t2, t3;
End of 5.2 tests
#
# BUG#779885: Crash in eliminate_item_equal with materialization=on in
...
...
@@ -5406,25 +5425,6 @@ ON t2.f10 = t3.f10
f1
DROP TABLE t1,t2,t3;
#
# Fix of LP BUG#780386 (NULL left part with empty ALL subquery).
#
CREATE TABLE t1 ( f11 int) ;
INSERT IGNORE INTO t1 VALUES (0),(0);
CREATE TABLE t2 ( f3 int, f10 int, KEY (f10,f3)) ;
INSERT IGNORE INTO t2 VALUES (NULL,NULL),(5,0);
DROP TABLE IF EXISTS t3;
Warnings:
Note 1051 Unknown table 't3'
CREATE TABLE t3 ( f3 int) ;
INSERT INTO t3 VALUES (0),(0);
SELECT a1.f3 AS r FROM t2 AS a1 , t1 WHERE a1.f3 < ALL ( SELECT f3 FROM t3 WHERE f3 = 1 ) ;
r
NULL
5
NULL
5
DROP TABLE t1, t2, t3;
#
# BUG LP:813473: Wrong result with outer join + NOT IN subquery
# This bug is a duplicate of Bug#11764086 whose test case is added below
#
...
...
mysql-test/t/subselect.test
View file @
ae23d4c9
...
...
@@ -4490,6 +4490,22 @@ SELECT a FROM t1 WHERE b <> ALL ( SELECT b FROM t1 GROUP BY b );
drop
table
t1
;
--
echo
#
--
echo
# Fix of LP BUG#780386 (NULL left part with empty ALL subquery).
--
echo
#
CREATE
TABLE
t1
(
f11
int
)
;
INSERT
IGNORE
INTO
t1
VALUES
(
0
),(
0
);
CREATE
TABLE
t2
(
f3
int
,
f10
int
,
KEY
(
f10
,
f3
))
;
INSERT
IGNORE
INTO
t2
VALUES
(
NULL
,
NULL
),(
5
,
0
);
DROP
TABLE
IF
EXISTS
t3
;
CREATE
TABLE
t3
(
f3
int
)
;
INSERT
INTO
t3
VALUES
(
0
),(
0
);
SELECT
a1
.
f3
AS
r
FROM
t2
AS
a1
,
t1
WHERE
a1
.
f3
<
ALL
(
SELECT
f3
FROM
t3
WHERE
f3
=
1
)
;
DROP
TABLE
t1
,
t2
,
t3
;
--
echo
End
of
5.2
tests
--
echo
#
...
...
@@ -4517,22 +4533,6 @@ WHERE
);
DROP
TABLE
t1
,
t2
,
t3
;
--
echo
#
--
echo
# Fix of LP BUG#780386 (NULL left part with empty ALL subquery).
--
echo
#
CREATE
TABLE
t1
(
f11
int
)
;
INSERT
IGNORE
INTO
t1
VALUES
(
0
),(
0
);
CREATE
TABLE
t2
(
f3
int
,
f10
int
,
KEY
(
f10
,
f3
))
;
INSERT
IGNORE
INTO
t2
VALUES
(
NULL
,
NULL
),(
5
,
0
);
DROP
TABLE
IF
EXISTS
t3
;
CREATE
TABLE
t3
(
f3
int
)
;
INSERT
INTO
t3
VALUES
(
0
),(
0
);
SELECT
a1
.
f3
AS
r
FROM
t2
AS
a1
,
t1
WHERE
a1
.
f3
<
ALL
(
SELECT
f3
FROM
t3
WHERE
f3
=
1
)
;
DROP
TABLE
t1
,
t2
,
t3
;
--
echo
#
--
echo
# BUG LP:813473: Wrong result with outer join + NOT IN subquery
--
echo
# This bug is a duplicate of Bug#11764086 whose test case is added below
...
...
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