Closed GoogleCodeExporter closed 8 years ago
Should be fixed in H2 version 1.3.165.
Original comment by thomas.t...@gmail.com
on 19 Mar 2012 at 7:56
Original comment by thomas.t...@gmail.com
on 19 Mar 2012 at 7:56
I don't known if this is a "new bug" (previous versions never throwed): use an
alias on union-selects and column name on order-by
1. create table a (id int)
2. select a.id as identifier from a union select a.id as identifier from a ORDER BY a.id
Throws Error: org.h2.jdbc.JdbcSQLException: Order by expression "a.id" must be
in the result list in this case; SQL statement:
Original comment by jose.ill...@gmail.com
on 20 Mar 2012 at 3:37
Yes, H2 throws an exception, same as Apache Derby, HSQLDB, PostgreSQL, MySQL.
For questions, please use StackOverflow, not the issue tracker, because very
few people look at the issue tracker. A lot more people use StackOverflow or
the Google Group, and you will get a more detailed reply.
Original comment by thomas.t...@gmail.com
on 21 Mar 2012 at 6:02
Original issue reported on code.google.com by
jose.ill...@gmail.com
on 13 Mar 2012 at 2:08