在Spring JPA存储库中,我有以下方法
@Query("select e from Entity e where e.enabled = true and e.id in :ids and (select count(*) from SubEntity se where se.e = e and se.date = :date) = 0")
public Page<Entity> query(@Param("date") String date, @Param("ids") List<Long> ids, Pageable pageable);
在h2嵌入式数据库中运行时,一切都很好,但在对Postgres运行时,我得到了以下内容:
Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or near ")"
Position: 123
可能是什么原因?