-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Constant expresion in select count phrase
PostPosted: Thu Jan 29, 2009 6:27 am 
Newbie

Joined: Tue Jan 20, 2009 3:25 am
Posts: 6
Location: Poland
I'm using Hibernate 3.2.5.GA, but also tried 3.3.1.GA (with Oracle database and JDBC ver. 11.1.0.6.0) and found that using constant expression in select count phrase is illegal.
Is there a chance that I missed something. If no, is there a chance that next versions will?

From DB point of view using
Code:
select count(1) from ...

is much more efficient than
Code:
select count(field) from ...

not even mentioning the star version.

Regards,
Maciej


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 05, 2009 9:47 am 
Newbie

Joined: Tue Jan 20, 2009 3:25 am
Posts: 6
Location: Poland
I filled jira issue for this EJB-412


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.