mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Merge of WL#1469 with latest bk sources.
This commit is contained in:
@@ -2279,10 +2279,10 @@ a a a
|
||||
2 2 2
|
||||
3 3 3
|
||||
select * from t1 natural join (t1 as t2 left join t1 as t3 using (a));
|
||||
a a a
|
||||
1 1 1
|
||||
2 2 2
|
||||
3 3 3
|
||||
a a
|
||||
1 1
|
||||
2 2
|
||||
3 3
|
||||
select * from (t1 as t2 left join t1 as t3 using (a)) natural join t1;
|
||||
a a a
|
||||
1 1 1
|
||||
@@ -2321,3 +2321,23 @@ left join t4 on id3 = id4 where id2 = 1 or id4 = 1;
|
||||
id1 id2 id3 id4 id44
|
||||
1 1 NULL NULL NULL
|
||||
drop table t1,t2,t3,t4;
|
||||
create table t1(s varchar(10) not null);
|
||||
create table t2(s varchar(10) not null primary key);
|
||||
create table t3(s varchar(10) not null primary key);
|
||||
insert into t1 values ('one\t'), ('two\t');
|
||||
insert into t2 values ('one\r'), ('two\t');
|
||||
insert into t3 values ('one '), ('two\t');
|
||||
select * from t1 where s = 'one';
|
||||
s
|
||||
select * from t2 where s = 'one';
|
||||
s
|
||||
select * from t3 where s = 'one';
|
||||
s
|
||||
one
|
||||
select * from t1,t2 where t1.s = t2.s;
|
||||
s s
|
||||
two two
|
||||
select * from t2,t3 where t2.s = t3.s;
|
||||
s s
|
||||
two two
|
||||
drop table t1, t2, t3;
|
||||
|
Reference in New Issue
Block a user