-->
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: Support for DECODE function in HQL
PostPosted: Tue Jul 11, 2006 3:11 am 
Regular
Regular

Joined: Mon May 08, 2006 6:00 am
Posts: 53
Location: India
Hi I am trying to use decode function in following HQL, I am getting exception while running this query

select sum(DECODE(tran.strReceiptReq,'Required',1, 0)) as Receipts from Table tran

any idea, whether its supported in HQL ?

I am using Hibernate 3 and I am using oracle9dialect

Thanks

Sudhir


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 12, 2006 1:28 am 
Regular
Regular

Joined: Mon May 08, 2006 6:00 am
Posts: 53
Location: India
Any one clue on this ? I am still awaiting some details on this

Sudhir


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 04, 2006 3:42 pm 
Newbie

Joined: Sun Nov 19, 2006 6:55 pm
Posts: 9
You will need to put double quote inside decode function...that is for sure.And the type of the column tran.strReceiptReq should be string in hbm.xml .


Top
 Profile  
 
 Post subject: NVL or Decode functions in HQL
PostPosted: Wed Mar 05, 2008 10:58 am 
Newbie

Joined: Sat Feb 23, 2008 10:20 am
Posts: 1
Location: India
Hi,
How can I call NVL and Decode functions for non String values. Please can you reply to me asap.
With Regards
Pugazh


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.