playframework - Play framework, PostgreSQL in memory database, interval not working -
playframework - Play framework, PostgreSQL in memory database, interval not working -
i can't next request work play framework
select distinct tablename hand (hand.userlogin = {userlogin} or {userlogin} null) , (date >= now() - interval '3 days') order tablename
i tested on postresql database , works perfectly, when seek run in in dev mode not work, next error:
caused by: org.h2.jdbc.jdbcsqlexception: syntax error in sql statement "select distinct tablename hand (hand.userlogin = ? or ? null) , (date >= current_timestamp - interval '3 minute'[*]) order tablename "; expected "., (, [, ::, *, /, %, +, -, ||, ~, !~, (, not, like, regexp, is, in, between, and, or, ,, )";
my conf file says:
db.default.driver=org.h2.driver db.default.url="jdbc:h2:mem:play;mode=postgresql"
i don't know getting wrong. removing interval part makes work problem.
postgres interval not belong h2 standard, not supported h2. see h2 grammar doc supported functions , keywords.
postgresql playframework h2
Comments
Post a Comment