Constant expresion in select count phrase
-----------------------------------------
Key: EJB-412
URL:
http://opensource.atlassian.com/projects/hibernate/browse/EJB-412
Project: Hibernate Entity Manager
Issue Type: Bug
Affects Versions: 3.3.1.GA
Reporter: Maciej Szulik
I found that using constant expression in select count phrase is illegal.
From DB point of view using
select count(1) from ...
is much more efficient than
select count(field) from ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira