DATE is a legacy function in PostgreSQL, use CURRENT_DATE or
CURRENT_TIMESTAMP instead (supported in both H2 and PostgreSQL)
Regards,
Peter
> org.h2.jdbc.JdbcSQLException: Column "DATE" not found; SQL statement:
> Select * from ****** where *******_date< date ? [42122-163]
Should have taken the time to wake up. The date literal in H2 cannot
take a parameter as PostgreSQL does. There is no directly compatible syntax.
Regards,
Peter
You are using invalid syntax. Try:
* from ****** where *******_date < ?
(remove the keyword "date"). This will work in both PosgreSQL and H2
(and other databases).
Regards,
Thomas
> --
> You received this message because you are subscribed to the Google Groups "H2 Database" group.
> To post to this group, send email to h2-da...@googlegroups.com.
> To unsubscribe from this group, send email to h2-database...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
>