I'm using hsqldb as in-memory database for unittests, the production system is running with mysql. The following query does work with mysql, but not if applied with hsqldb:
select * from table where columnTimestamp + INTERVAL 'columnDays' DAY < now();
I want to retrieve all specific rows where the interval is based on another column. When I use fixed values it does work with hsqldb, but this is not the required behaviour.
The errormessage hsqldb returns:
data exception: invalid interval format / Error Code: -3406 / State: 22006