-->
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.  [ 3 posts ] 
Author Message
 Post subject: is it a bug or can't i use sum(field_a*fieldb)
PostPosted: Wed Nov 12, 2003 4:49 am 
Newbie

Joined: Wed Nov 12, 2003 4:24 am
Posts: 2
hi!

i found the follow error:

i try to iterate a query:

s.iterate("SELECT sum(hours.time*employee_faktor.faktor) FROM hours IN CLASS com.comp.sql.dbo.Hours, employee_faktor IN CLASS com.comp.sql.dbo.Employee_faktor WHERE hours.phase.id=? and hours.userid=employee_faktor.employee.userid and employee_faktor.datefrom<=hours.activitydate and employee_faktor.dateto>hours.activitydate", phase.getId(), Hibernate.LONG);


and i get the follow exception:

SCHWERWIEGEND: Spaltenname


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 12, 2003 4:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
As per the documentation, expressions are not supported in the SELECT clause.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 12, 2003 5:17 am 
Newbie

Joined: Wed Nov 12, 2003 4:24 am
Posts: 2
but it looks like hibernate accept the query, it translate it into sql and send
it to the database.
only the col name is not right (x0_0_/x1_0_)

if it is not supportet why hibernate doesnt send a execption that
it is not supportet?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.