mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
Fixed bug mdev-5135.
The patch for bug mdev-5105 incorrectly counted conditions in nested joins.
This commit is contained in:
parent
78b580b779
commit
81623bdc35
5 changed files with 93 additions and 6 deletions
|
|
@ -1097,5 +1097,20 @@ COUNT(*)
|
|||
3724
|
||||
set optimizer_prune_level=@tmp_951283;
|
||||
DROP TABLE t1,t2;
|
||||
#
|
||||
# Bug mdev-5135: crash on semijoin with nested outer joins
|
||||
#
|
||||
CREATE TABLE t1 (i1 int) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
CREATE TABLE t2 (i2 int, INDEX(i2)) ENGINE=MyISAM;
|
||||
CREATE TABLE t3 (i3 int, c varchar(1), INDEX(i3), INDEX(c)) ENGINE=MyISAM;
|
||||
INSERT INTO t3 VALUES (3,'x'),(4,'y');
|
||||
SELECT * FROM t1 WHERE ( 1, 1 ) IN (
|
||||
SELECT i2, i2 FROM t2 LEFT OUTER JOIN (
|
||||
t3 AS t3a INNER JOIN t3 AS t3b ON ( t3a.i3 = t3b.i3 )
|
||||
) ON ( t3a.c = t3b.c )
|
||||
);
|
||||
i1
|
||||
DROP TABLE t1,t2,t3;
|
||||
# This must be the last in the file:
|
||||
set optimizer_switch=@subselect_sj2_tmp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue