-->
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: Oracle9Dialect incorrect last_day function registration
PostPosted: Fri Aug 18, 2006 12:56 pm 
Newbie

Joined: Fri Aug 18, 2006 12:26 pm
Posts: 4
Oracle9Dialect registers a "lastday" function, but the Oracle function is actually "last_day" (with the underscore). HQL doesn't like "last_day" as it stands, and I get a SQL error if I use "lastday" in HQL, which makes sense. I am using Hibernate 3.1.2 but it looks like the problem is in current CVS as well.

Also... is there a reason SybaseDialect does not register the datediff function? I was able to do that with a custom subclass but it would seem to be useful to have that in SybaseDialect directly. I think SQL Server supports it as well. Not sure about Sybase Anywhere though... maybe that's the reason ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 18, 2006 9:40 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Create a JIRA entry for it (with a patch even though its a simple change).


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 19, 2006 3:58 pm 
Newbie

Joined: Fri Aug 18, 2006 12:26 pm
Posts: 4
Okay, I created HHH-2016 with the Oracle problem.

Should I create a separate JIRA request to add datediff() to SybaseDialect, or is there a reason why it hasn't been added before now?

Thanks :-)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 20, 2006 10:06 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The same applies. The easier you make for the team to do the more likely it will occur.


Top
 Profile  
 
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.