Talk About Network

Google





Data Bases > Pgsql Interfaces Jdbc > Re: Correct get...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 1946 of 2101
Post > Topic >>

Re: Correct getScale() behavior?

by books@[EMAIL PROTECTED] (Kris Jurka) May 8, 2008 at 02:33 AM

On Mon, 5 May 2008, Dave Dombrosky wrote:

> I have looked into the driver source, and it seems like a change was
> made in the 8.2+ drivers.  When getting the result of an aggregate sum
> (of NUMERIC(7,2) values) in 8.1 it returns -1 as the scale, but in 8.2
> it returns 0.  It looks like "-1" is meant to be taken as an undefined
> value, which seems to be the correct behavior to me.

This change was made because some ORM tools (some of the rowset stuff I 
think) pulled the scale and stored it off regardless of whether it was 
used or not.  The storing code did "validation" that required it be >= 0. 
So everyone using these frameworks was screwed whether they needed the 
scale or not.  So we changed it to keep them happy at the expense of 
people like used based on a size of the camps measurement alone.

Kris Jurka


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
 




 6 Posts in Topic:
Correct getScale() behavior?
dombrd@[EMAIL PROTECTED]   2008-05-05 16:24:09 
Re: Correct getScale() behavior?
books@[EMAIL PROTECTED]   2008-05-08 02:33:24 
Re: Correct getScale() behavior?
dombrd@[EMAIL PROTECTED]   2008-05-09 12:28:12 
Re: Correct getScale() behavior?
books@[EMAIL PROTECTED]   2008-05-09 15:45:24 
Re: Correct getScale() behavior?
tgl@[EMAIL PROTECTED] (T  2008-05-09 20:09:06 
Re: Correct getScale() behavior?
tivvpgsqljdbc@[EMAIL PROT  2008-05-12 11:10:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 20:30:14 PST 2009.