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: Problem with the use of nvl function
PostPosted: Tue Apr 15, 2008 9:59 am 
Newbie

Joined: Thu Mar 17, 2005 7:50 am
Posts: 8
Location: Tunis
Hi,
i'm using NHibernate 1.2.1 with oracle 8 and i'm getting a strange problem with the use of the nvl function in a named query.
Here is the query:
Code:
Select Sum(nvl(e.Value,0))
From Entity e
      Where
        e.Societe = :Societe And
        e.Titre = :Titre And
        e.SousTitre = :SousTitre And
        e.Chapitre = :Chapitre And
        e.Article = :Article And
        e.Paragraphe = :Paragraphe And
        e.SousParagraphe = :SousParagraphe And
        (e.Date Between :StartDate And :EndDate)

I have a QueryException with the message "alias or expression expected".
Any ideas?
Regards.
Walid Soumer.


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.