Closed GoogleCodeExporter closed 8 years ago
Hi,
I tested this with MySQL, PostgreSQL, HSQLDB, and Apache Derby.
MySQL and HSQLDB return 4 rows / count(*) = 4.
PostgreSQL and Derby throw exceptions:
Comparisons between 'CHAR (UCS_BASIC)' and 'INTEGER' are not supported. Types
must be comparable.
ERROR: operator does not exist: character < integer 42883/0
But it's still a bug, either H2 should say count(*)=4.
Simpler test case:
drop table test;
create table test(name varchar(255));
insert into test values('a');
insert into test values('b');
insert into test values('c');
select name from test where name > all(select name from test where name<'b');
select count(*) from (select name from test where name > all(select name from
test where name<'b')) x;
Original comment by thomas.t...@gmail.com
on 8 Sep 2011 at 7:29
Now fixed in the trunk.
Original comment by thomas.t...@gmail.com
on 10 Sep 2011 at 9:37
Thanks Thomas.
Original comment by robert.b...@gmail.com
on 12 Sep 2011 at 2:03
Original comment by thomas.t...@gmail.com
on 22 Sep 2011 at 4:32
Original issue reported on code.google.com by
robert.b...@gmail.com
on 1 Sep 2011 at 5:55