Re: Correct getScale() behavior?

From: tivvpgsqljdbc(at)gtech-ua(dot)com
To:
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Correct getScale() behavior?
Date: 2008-05-12 08:10:31
Message-ID: 4827FB77.1030106@gtech-ua.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Kris Jurka написав(ла):
>
> 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))?
I suppose the answer is: "As always, by function definition":
9.18. Aggregate Functions

|sum(/expression/)

|bigint for smallint or int arguments, numeric for bigint arguments,
double precision for floating-point arguments, otherwise the same as the
argument data type

So, sum(numeric(7,2)) must be numeric(7,2). If result do not fit, sql
code must be raised.

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Achilleas Mantzios 2008-05-12 08:47:13 scrollable ResultSet advise
Previous Message Kris Jurka 2008-05-12 07:05:39 Re: JDBC types vs postgres types correspondation