Hi Peter,
Hi,
I'm running H2 in memory in postgres compatibility mode:
jdbc:h2:mem:test;MODE=PostgreSQL
I'm getting a driver error around the DATE function:
org.h2.jdbc.JdbcSQLException: Column "DATE" not found; SQL statement:
Select * from ****** where *******_date< date ? [42122-163]
Looks like driver is not recognising date as a function.
Is this date function not supported by H2 PostgreSQL compatibility
mode ? or am I using the driver incorrectly ?
DATE is a legacy function in PostgreSQL, use CURRENT_DATE or
CURRENT_TIMESTAMP instead (supported in both H2 and PostgreSQL)
Regards,
Peter
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/h2-database?hl=en.