1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Merge branch '10.1' of ../10.1-mdev334 into 10.1

This commit is contained in:
Igor Babaev
2014-10-17 14:06:54 -07:00
5 changed files with 30 additions and 2 deletions

View File

@ -2005,3 +2005,13 @@ FOUND_ROWS()
1
DROP TABLE t1, t2;
# End of WL1763 tests
#
# Bug mdev-6874: crash with UNION ALL in a subquery
#
CREATE TABLE t1 (a int, b int);
INSERT INTO t1 VALUES (1,1), (2,8);
SELECT * FROM t1 t1_1 LEFT JOIN t1 t1_2 ON ( t1_2.b = t1_1.a )
WHERE t1_2.b NOT IN ( SELECT 4 UNION ALL SELECT 5 );
a b a b
1 1 1 1
DROP TABLE t1;

View File

@ -1417,3 +1417,15 @@ DROP TABLE t1, t2;
--echo # End of WL1763 tests
--echo #
--echo # Bug mdev-6874: crash with UNION ALL in a subquery
--echo #
CREATE TABLE t1 (a int, b int);
INSERT INTO t1 VALUES (1,1), (2,8);
SELECT * FROM t1 t1_1 LEFT JOIN t1 t1_2 ON ( t1_2.b = t1_1.a )
WHERE t1_2.b NOT IN ( SELECT 4 UNION ALL SELECT 5 );
DROP TABLE t1;