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: Oracle AVG overflow
PostPosted: Tue May 16, 2006 11:46 am 
Newbie

Joined: Tue May 16, 2006 11:41 am
Posts: 2
Dear All!

Please, help me with this: we run Oracle 9 without any bumps except one:
when an AVG function is called, and the avg is not a round value, then NHibernate cannot read the value from the datareader (throws overflow exception).
The datareader's column type is decimal, the avg is relatively small (4.5xxxxxx).
If the AVG is more rounded (like 4.45), works great!

(Using Oracle .NET connector)

Any ideas?

Thanks,

Adam


Top
 Profile  
 
 Post subject: Oracle driver problem!
PostPosted: Wed May 17, 2006 6:00 am 
Newbie

Joined: Tue May 16, 2006 11:41 am
Posts: 2
We found out, that it is actually an oracle driver problem.
When using OLE connection, it works great, but with native Oracle .NET driver, it throws exception.

Damn.

Any comments?

Thanks,

Adam


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 03, 2008 5:50 am 
Newbie

Joined: Tue Apr 10, 2007 10:24 am
Posts: 2
Try tu use ROUND(AVG(column), 5)


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.