-->
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: Formula error
PostPosted: Tue Nov 17, 2009 6:53 am 
Newbie

Joined: Tue Nov 17, 2009 6:47 am
Posts: 1
How can I use the function 'interval' in a formula?

Code:
<property name="breackageDate"
               type="date"
               formula="(select s.realized_date + t.age * (interval '1 day')
                              from gpm_concrete.concrete_series s
                              join gpm_concrete.test_tubes t
                              on t.concrete_serie_id = s.id and t.id = id)"/>


Code:
ERROR:  no existe el esquema «testtube0_»
2009-11-17 11:44:10 CET SENTENCIA:  select testtube0_.id as id49_, testtube0_.concrete_serie_id as concrete2_49_, testtube0_.age as age49_, testtube0_.weight as weight49_, testtube0_.breackage_load as breackage5_49_, (select s.realized_date + t.age * (testtube0_.interval '1 day')                   from gpm_concrete.concrete_series s                   join gpm_concrete.test_tubes t                   on t.concrete_serie_id = s.id and t.id = testtube0_.id) as formula0_ from gpm_concrete.test_tubes testtube0_, gpm_concrete.concrete_series concretese1_ where testtube0_.concrete_serie_id=concretese1_.id and concretese1_.job_id=29430







(Sorry for my bad english)


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.