Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.7
-
None
-
openejb-core 4.6.1-SNAPSHOT
Deltaspike 0.7-SNAPSHOT
Description
CountQueryPostProcessor assumes there's a where clause when it rewrites to count query.
private String rewrite()
{ return "select count(" + (select != null ? select : entityName) + ") " + from + where; }here where can easily be null causing a query like this:
select count( fact ) from Fact factnull