-->
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.  [ 1 post ] 
Author Message
 Post subject: Count Query
PostPosted: Sun May 04, 2008 12:39 pm 
Newbie

Joined: Sun May 04, 2008 12:27 pm
Posts: 1
This should be a no brainer, but man oh man this thing is beating me up it makes no sense at all to me....

I have a count query to count how many records have a particular typeid there are 6 records I know are int there...

The query generated is select COUNT(*) as x0_0_ from Entities entitybase0_ where ((typeID=@p0 )); @p0 = '14'

if i run this exact query in SQL as select COUNT(*) as x0_0_ from Entities entitybase0_ where ((typeID=14 )); I get a result of 6 or that would be typeID=14 or typeID ='14' either gives me a result of 6, however NHibernate returns 0...what am i missing here? every other count query i've done works fine but they are all with strings so this has to be something I'm not accounting for with Integers.

Please any help would be fabulous.


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

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.