mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.5 into 10.6
This commit is contained in:
@ -3407,3 +3407,20 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||
drop table t1,t2,t3;
|
||||
drop table t1000,t10,t03;
|
||||
# End of 10.3 tests
|
||||
#
|
||||
# MDEV-30080 Wrong result with LEFT JOINs involving constant tables
|
||||
#
|
||||
CREATE TABLE t1 (a INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
CREATE TABLE t2 (b INT) ENGINE=MyISAM;
|
||||
INSERT INTO t2 VALUES (1),(1);
|
||||
CREATE TABLE t3 (c INT PRIMARY KEY) ENGINE=MyISAM;
|
||||
SELECT * FROM t1 LEFT JOIN (t2 LEFT JOIN t3 ON t2.b = t3.c) ON t1.a = t2.b;
|
||||
a b c
|
||||
1 1 NULL
|
||||
1 1 NULL
|
||||
SELECT COUNT(*) FROM t1 LEFT JOIN (t2 LEFT JOIN t3 ON t2.b = t3.c) ON t1.a = t2.b;
|
||||
COUNT(*)
|
||||
2
|
||||
DROP TABLE t1, t2, t3;
|
||||
# End of 10.5 tests
|
||||
|
Reference in New Issue
Block a user