0

Grails 域属性: java.sql.Timestamp dateInvoiced

postgresql 列: 没有时区的 date_invoiced 时间戳

我的查询:

BrokerageOrder.executeQuery(
    "SELECT COUNT(*) AS count FROM BrokerageOrder d WHERE d.dateInvoiced IS ?",[null])

错误:

Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: timestamp  
   without time zone = bytea
   Hint: No operator matches the given name and argument type(s). You might need to add   
   explicit type casts. Position: 133

问题:我该如何解决这个问题?为什么它认为我的 null 是一个字节?

谢谢你,杰夫。

4

0 回答 0