mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.0 into 10.1
This commit is contained in:
@ -2503,6 +2503,26 @@ SELECT 2 IN (SELECT 2 from DUAL WHERE 1 != 1);
|
||||
SET optimizer_switch= @@global.optimizer_switch;
|
||||
set @@tmp_table_size= @@global.tmp_table_size;
|
||||
#
|
||||
# MDEV-14515: Wrong results for tableless query with subquery in WHERE
|
||||
# and implicit aggregation
|
||||
#
|
||||
create table t1 (i1 int, i2 int);
|
||||
insert into t1 values (1314, 1084),(1330, 1084),(1401, 1084),(580, 1084);
|
||||
create table t2 (cd int);
|
||||
insert into t2 values
|
||||
(1330), (1330), (1330), (1330), (1330), (1330), (1330), (1330),
|
||||
(1330), (1330), (1330), (1330), (1330), (1330), (1330), (1330);
|
||||
select max(10) from dual
|
||||
where exists (select 1 from t2 join t1 on t1.i1 = t2.cd and t1.i2 = 345);
|
||||
max(10)
|
||||
NULL
|
||||
insert into t2 select * from t2;
|
||||
select max(10) from dual
|
||||
where exists (select 1 from t2 join t1 on t1.i1 = t2.cd and t1.i2 = 345);
|
||||
max(10)
|
||||
NULL
|
||||
DROP TABLE t1,t2;
|
||||
#
|
||||
# MDEV-10232 Scalar result of subquery changes after adding an outer select stmt
|
||||
#
|
||||
create table t1(c1 int, c2 int, primary key(c2));
|
||||
|
Reference in New Issue
Block a user