mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge branch '5.5' into bb-10.0-merge-5.5
This commit is contained in:
@ -511,6 +511,20 @@ set join_cache_level = default;
|
||||
drop view v1;
|
||||
drop table t1,t2;
|
||||
#
|
||||
# MDEV-10693: cost-based choice between materialization and in-to-exists
|
||||
# for a subquery from the expression used in ref access
|
||||
#
|
||||
CREATE TABLE t1 (i1 INT PRIMARY KEY) ENGINE=InnoDB;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
CREATE TABLE t2 (i2 INT) ENGINE=InnoDB;
|
||||
CREATE TABLE t3 (i3 INT PRIMARY KEY) ENGINE=InnoDB;
|
||||
INSERT INTO t3 VALUES (3);
|
||||
SELECT * FROM t1
|
||||
WHERE NULL IN ( SELECT i2 FROM t2
|
||||
WHERE i1 IN ( i2 IN ( SELECT i3 FROM t3 ) ) AND i2 = 2 );
|
||||
i1
|
||||
DROP TABLE t1,t2,t3;
|
||||
#
|
||||
# MDEV-6041: ORDER BY+subqueries: subquery_table.key=outer_table.col is not recongized as binding
|
||||
#
|
||||
create table t1(a int) engine=innodb;
|
||||
|
Reference in New Issue
Block a user