-->
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: Behavior with null values
PostPosted: Mon Apr 26, 2004 8:05 am 
Newbie

Joined: Mon Dec 22, 2003 10:00 am
Posts: 11
Location: Switzerland
Hi,
the following query

select listing from Instrument as instrument where instrument.duration not between :0 and :1

generates different results when using hsqldb 1.7.2 or Firebird 1.5 or Oracle because hsqldb counts also the null durations.
Is there a way to control the treatment of nulls through hibernate (e.g. by adding a 'and instrument.duration is not null' to the criteria)? I know this is more a db bug or feature, but should not hibernate transparently hide the db differences? ;)

Regards
Massimo


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 26, 2004 9:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
You have to do this manually.


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.