select 1 abc, count(*) from dual group by abc order by abc asc
select 1 "ABC", count(*) from dual group by "ABC" order by "ABC" asc
select 1 "abc", count(*) from dual group by "abc" order by "abc" asc
org.jooq.exception.DataAccessException: SQL [select 1 "abc", count(*) from dual group by "abc" order by "abc" asc]; Feld "abc" nicht gefundenColumn "abc" not found; SQL statement:select 1 "abc", count(*) from dual group by "abc" order by "abc" asc [42122-177]
--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2-database...@googlegroups.com.
To post to this group, send email to h2-da...@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.
Hi,You are right, this is a bug. I will try to fix it.Regards,
Hello folks,--I've just analysed this jOOQ support request on Stack Overflow here and suspect that it is really a bug in H2:This query works in H2:select 1 abc, count(*) from dual group by abc order by abc ascSo does this one:select 1 "ABC", count(*) from dual group by "ABC" order by "ABC" ascbut this one doesn't:select 1 "abc", count(*) from dual group by "abc" order by "abc" ascI'm getting this exception:org.jooq.exception.DataAccessException: SQL [select 1 "abc", count(*) from dual group by "abc" order by "abc" asc]; Feld "abc" nicht gefundenColumn "abc" not found; SQL statement:select 1 "abc", count(*) from dual group by "abc" order by "abc" asc [42122-177]I suspect that quotes are not properly evaluated in GROUP BY clauses, at least when they surround an alias declared in the SELECT clause.Cheers,Lukas
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscribe@googlegroups.com.
This seems to be the same problem as in our Issue 578
http://code.google.com/p/h2database/issues/detail?id=578&sort=-id
--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2-database...@googlegroups.com.