-->
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.  [ 2 posts ] 
Author Message
 Post subject: formula -two date subtraction - precision too long exception
PostPosted: Wed Aug 18, 2010 1:00 pm 
Newbie

Joined: Thu Mar 19, 2009 7:33 am
Posts: 3
Location: Chennai
am using a Long Property to map calculated formula column which returns number of days.

it works upto 3 digit numbers 999, but not 1000 days if the difference is. throws precision value too long exception.

Code:
<property name="days" formula="round(to_number(trunc(date1-date2)))">


if difference btwn date1 and date2 is less than 1000(4digit) it works. else thows exception.

kindly advice.

Thanks

_________________
Prabu


Top
 Profile  
 
 Post subject: Re: formula -two date subtraction - precision too long exception
PostPosted: Wed Aug 18, 2010 2:24 pm 
Beginner
Beginner

Joined: Thu Dec 11, 2008 8:18 am
Posts: 35
what is date1 and date2.
can you send the code.


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