Re: [hibernate-dev] Various "row value construct" alike syntax and Dialect class

2012-05-29 Thread Steve Ebersole
On Sun 27 May 2012 02:52:23 AM CDT, Łukasz Antoniak wrote: > The initial question here is how to distinguish dialects that support > statements like: > update ParentEntity_AUD set REVEND=? where (id, REV) IN (select id, > REV from HT_ChildEntity_AUD) Ok. And this form comes about because of the m

Re: [hibernate-dev] Various "row value construct" alike syntax and Dialect class

2012-05-27 Thread Łukasz Antoniak
The initial question here is how to distinguish dialects that support statements like: update ParentEntity_AUD set REVEND=? where (id, REV) IN (select id, REV from HT_ChildEntity_AUD) For example H2 fails: Caused by: org.h2.jdbc.JdbcSQLException: Podzapytanie nie jest zapytaniem opartym o jedna

Re: [hibernate-dev] Various "row value construct" alike syntax and Dialect class

2012-05-26 Thread Steve Ebersole
On Fri 25 May 2012 02:19:29 PM CDT, Łukasz Antoniak wrote: > Hello Community, > > Really quick question. There are quite few SQL syntax tricks similar to "row > value construct". > > CREATE TABLE test ( a1 NUMBER, b1 NUMBER ); > SELECT * FROM test WHERE (a1, b1) = ( 1, 1 ); -- Fails on Oracle > S

Re: [hibernate-dev] Various "row value construct" alike syntax and Dialect class

2012-05-26 Thread Łukasz Antoniak
One additional note: Where clause| Oracle | PostgreSQL | MySQL -- WHERE (a1, b1) = ( 1, 1 ) | Fail | Pass| Pass -

[hibernate-dev] Various "row value construct" alike syntax and Dialect class

2012-05-25 Thread Łukasz Antoniak
Hello Community, Really quick question. There are quite few SQL syntax tricks similar to "row value construct". CREATE TABLE test ( a1 NUMBER, b1 NUMBER ); SELECT * FROM test WHERE (a1, b1) = ( 1, 1 ); -- Fails on Oracle SELECT * FROM test WHERE (a1, b1) IN ( ( 1, 1 ), ( 2, 2 ) ); -- Passes on O