PostgreSQL的TIMESTAMP now()在时区'IST'不能在休眠模式下工作

时间:2019-05-10 09:40:00

标签: postgresql hibernate timezone

休眠查询:

  SELECT l.submissionDate
  from lead l
  where date (TIMESTAMP '2018-03-31T21:45:00.000+0000' AT TIME ZONE :userOffset) = DATE(:submissionDate)

上面的查询抛出

之类的异常
    11:08:13.248 [http-nio-8080-exec-5] ERROR o.h.hql.internal.ast.ErrorTracker - line 1:889: unexpected token: AT
    antlr.NoViableAltException: unexpected token: AT

0 个答案:

没有答案