-->
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: HQL problem!
PostPosted: Mon Oct 22, 2007 11:22 am 
Newbie

Joined: Mon Aug 13, 2007 9:27 am
Posts: 12
some body tells please what is the problem??

HQL code:
select sum(suggester.rewardPrice) from SuggestionDTO as suggestion join suggestion.suggesters as suggester join suggestion.councilOpinions as councilOpinion where councilOpinion.creationDate >= :startTime and councilOpinion.creationDate <= :endTime and councilOpinion.typeId == 1

error message:
"could not execute query\r\n[ select sum(suggesters1_.reewardprice) as x0_0_ from suggestion suggestion0_, SUGGESTERINFO suggesters1_, tcopinion councilopi2_ where suggestion0_.id=suggesters1_.suggestionid and suggestion0_.id=councilopi2_.suggestionid and ((councilopi2_.CREATIONDATE>=? )and(councilopi2_.CREATIONDATE<=? )and(councilopi2_.typeid==1 )) ]\r\n Name: endTime - Value: 10/22/2007 12:00:00 am\r\n Name: startTime - Value: 9/23/2007 12:00:00 am\r\n[SQL: select sum(suggesters1_.reewardprice) as x0_0_ from suggestion suggestion0_, SUGGESTERINFO suggesters1_, tcopinion councilopi2_ where suggestion0_.id=suggesters1_.suggestionid and suggestion0_.id=councilopi2_.suggestionid and ((councilopi2_.CREATIONDATE>=? )and(councilopi2_.CREATIONDATE<=? )and(councilopi2_.typeid==1 ))]"

inner exception:
"ORA-00936: missing expression\n"


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.