Closed GoogleCodeExporter closed 9 years ago
I know you guys are busy, but the wrong results we've been getting from any
1.2.*
version of H2 is dragging out, and now with the fixed parser bug in 1.2.128, I'm
getting more pressure as to why we aren't using the latest version. It's been
difficult to find a reproducible case but I have one here. I'd appreciate if
you'd at
least try look at it and try to reproduce.
Thanks!
Randy
Original comment by youn...@gmail.com
on 9 Feb 2010 at 5:53
Sorry for the delay. This is a problem that was introduced in version 1.2.128,
when
trying to fix the bug "Comparing an column against a constant expression with a
higher precision or length than the column could give wrong results (the
expression
was truncated before comparing)." See also:
http://www.h2database.com/html/changelog.html
In this case, the problem is not with VARCHAR, but with DECIMAL and using
different
scales. A simpler test case:
drop table test;
create table test(id decimal(10, 2) primary key) as select 0;
select * from test where id = 0.00;
select * from test where id = 0.0;
The first query returns the row, the second does not.
I will fix this of course.
Original comment by thomas.t...@gmail.com
on 9 Feb 2010 at 10:42
This should be fixed with version 1.2.129.
Original comment by thomas.t...@gmail.com
on 20 Feb 2010 at 9:44
Original issue reported on code.google.com by
youn...@gmail.com
on 4 Feb 2010 at 7:39Attachments: