Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


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

Re: Correct getScale() behavior?

by books@[EMAIL PROTECTED] (Kris Jurka) May 9, 2008 at 03:45 PM

On Fri, 9 May 2008, dombrd@[EMAIL PROTECTED]
 wrote:

> I realize I'm not going to get you to change back to returning -1 for
> the scale and precision, because a lot of users would be affected by
> that.  However, I am wondering if there is a way we could get the
> actual precision and scale returned for an aggregate sum, and other
> aggregate functions as well.
>
> I would think it should be returning a scale and precision if the
> argument column has scale and precision specified, such as in the
> NUMERIC(7,2) example I previously showed.  It seems wrong to return 0
> in this case.
>
> I am guessing the postgresql server code would need to be changed for 
> that to work though.  Maybe I should be suggesting this change on a 
> different list?
>

Right, that change would be nice, but it would require a server change. 
The best place to ask about that would be -hackers.  Also how do you 
determine the precision of sum(numeric(7,2))?

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
tan12V112 Sun Sep 7 7:09:59 CDT 2008.