~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
create table t1 (pk int primary key, col_int int, col_int_unique int unique key);
insert into t1 values (1,NULL,2), (2,0,0);
create table t2 (pk int primary key, col_int int, col_int_unique int unique key);
insert into t2 values (1,0,1), (2,0,2);
select * from t1 left join t2
on t1.col_int_unique = t2.col_int_unique and t1.col_int = t2.col_int 
where t1.pk=1;
pk	col_int	col_int_unique	pk	col_int	col_int_unique
1	NULL	2	NULL	NULL	NULL
drop table t1;
drop table t2;