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
21006fd3
Commit
21006fd3
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
ea1819f0
9625b891
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 @
21006fd3
...
...
@@ -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 @
21006fd3
...
...
@@ -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 @
21006fd3
...
...
@@ -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 @
21006fd3
...
...
@@ -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 @
21006fd3
...
...
@@ -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 @
21006fd3
...
...
@@ -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