Closed GoogleCodeExporter closed 9 years ago
Note: the bug still exists in 1.2.124.
Original comment by dmoeb...@gmx.net
on 3 Dec 2009 at 10:05
I can change the join algorithm so that your test case works. However,
it will still not be fully correct. I do already know about the problem:
http://www.h2database.com/html/faq.html#known_bugs
"Some problems have been found with right outer join. Internally, it is
converted to
left outer join, which does not always produce the same results as other
databases
when used in combination with other joins."
The test case that will still be incorrect is:
create table a(a int);
insert into a values(1);
insert into a values(2);
create table b(b int);
insert into b values(1);
create table c(c int);
insert into c values(1);
insert into c values(2);
insert into c values(3);
select * from a inner join b on a=b right outer join c on c=a;
select * from c left outer join (a inner join b on b=a) on c=a;
select * from c left outer join a on c=a inner join b on b=a;
drop table a;
drop table b;
drop table c;
I hope I can fix that soon, but it will require more changes.
Original comment by thomas.t...@gmail.com
on 4 Dec 2009 at 11:09
Your test case now works in version 1.2.125, however this issue is not
completely
solved. I will leave the issue open.
Original comment by thomas.t...@gmail.com
on 6 Dec 2009 at 6:50
Original comment by thomas.t...@gmail.com
on 21 Mar 2010 at 11:42
This is implemented in version 1.2.138, but not enabled by default (because
it's a bigger change). To test it, enable the system property h2.nestedJoins.
This property will be enabled by default in version 1.3.x
Original comment by thomas.t...@gmail.com
on 28 Jun 2010 at 4:53
I'm setting the issue to 'fixed', even if nested joins are not yet enabled by
default. Please add a comment if it still doesn't work for you (or doesn't work
as expected) even when the system property is enabled.
Original comment by thomas.t...@gmail.com
on 28 Jun 2010 at 6:51
Original issue reported on code.google.com by
dmoeb...@gmx.net
on 3 Dec 2009 at 9:54