-->
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.  [ 4 posts ] 
Author Message
 Post subject: Patch for Criteria.Count
PostPosted: Fri Jun 03, 2005 6:06 pm 
Regular
Regular

Joined: Thu May 12, 2005 10:12 am
Posts: 71
Location: Buenos Aires, Argentina
Hi. I'm in desperate need in my project to have a Criteria.Count property because I dont want to build HQL dinamicaly. But I'm having a few problems and would like if someone could give me a hand. I've copied the concept for a patch that existed for hibernate 2.1

I have the Patch for nhibernate (diff) for the latest CVS build. I'm not sure what is not working. Basically what this is doing is changing the in the CriteriaLoader the SqlString with a

Quote:
sqlBuilder.SetSelectClause(" count(*) ");


When I take a look at the resulting SQL in the log files everything looks fine, except the NHybridDataReader is not returning result.

How and where can I post the patch file and is anyone available to give the code a look (it is still not commented and pretty but there is a UnitTest in FumTest fixture)

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 04, 2005 4:13 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Just post it here or in JIRA, I'll try to find some time to look at it.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 06, 2005 8:37 am 
Sergey, I've created a Jira issue and attached the file there.

Thank you for having a look at it. I hope it can be incorporated into the next build.


Top
  
 
 Post subject:
PostPosted: Mon Jun 06, 2005 8:37 am 
Sergey, I've created a Jira issue and attached the file there. http://jira.nhibernate.org/browse/NH-307

Thank you for having a look at it. I hope it can be incorporated into the next build.


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.