mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
merge of 5.1-main into 5.1-maria. Myisam->Maria change propagation will follow.
There were so many changes into mtr (this is the new mtr coming) that I rather copied mtr from 6.0-main here (at least this one knows how to run Maria tests). I also fixed suite/maria tests to be accepted by the new mtr. mysys/thr_mutex.c: adding DBUG_PRINT here, so that we can locate where the warning is issued.
This commit is contained in:
@ -1658,9 +1658,9 @@ SELECT DISTINCT (SELECT a) FROM t1 LIMIT 100;
|
||||
DROP TABLE t1;
|
||||
create table t1 (a int, b decimal(13, 3));
|
||||
insert into t1 values (1, 0.123);
|
||||
select a, (select max(b) from t1) into outfile "subselect.out.file.1" from t1;
|
||||
select a, (select max(b) from t1) into outfile "../../tmp/subselect.out.file.1" from t1;
|
||||
delete from t1;
|
||||
load data infile "subselect.out.file.1" into table t1;
|
||||
load data infile "../../tmp/subselect.out.file.1" into table t1;
|
||||
select * from t1;
|
||||
a b
|
||||
1 0.123
|
||||
@ -4475,4 +4475,40 @@ WHERE 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
|
||||
DELETE FROM v3;
|
||||
DROP VIEW v1,v2,v3;
|
||||
DROP TABLE t1,t2;
|
||||
#
|
||||
# BUG#37822: Correlated subquery with IN and IS UNKNOWN provides wrong result
|
||||
#
|
||||
create table t1(id integer primary key, g integer, v integer, s char(1));
|
||||
create table t2(id integer primary key, g integer, v integer, s char(1));
|
||||
insert into t1 values
|
||||
(10, 10, 10, 'l'),
|
||||
(20, 20, 20, 'l'),
|
||||
(40, 40, 40, 'l'),
|
||||
(41, 40, null, 'l'),
|
||||
(50, 50, 50, 'l'),
|
||||
(51, 50, null, 'l'),
|
||||
(60, 60, 60, 'l'),
|
||||
(61, 60, null, 'l'),
|
||||
(70, 70, 70, 'l'),
|
||||
(90, 90, null, 'l');
|
||||
insert into t2 values
|
||||
(10, 10, 10, 'r'),
|
||||
(30, 30, 30, 'r'),
|
||||
(50, 50, 50, 'r'),
|
||||
(60, 60, 60, 'r'),
|
||||
(61, 60, null, 'r'),
|
||||
(70, 70, 70, 'r'),
|
||||
(71, 70, null, 'r'),
|
||||
(80, 80, 80, 'r'),
|
||||
(81, 80, null, 'r'),
|
||||
(100,100,null, 'r');
|
||||
select *
|
||||
from t1
|
||||
where v in(select v
|
||||
from t2
|
||||
where t1.g=t2.g) is unknown;
|
||||
id g v s
|
||||
51 50 NULL l
|
||||
61 60 NULL l
|
||||
drop table t1, t2;
|
||||
End of 5.1 tests.
|
||||
|
Reference in New Issue
Block a user