Re: Type identification with libpq / PQFmod() when using aggregates (SUM)

Sebastien FLAESCH <[email protected]> Mon, 14 Apr 2014 16:24:19 +0200
Newsgroups gmane.comp.db.postgresql.interfaces
Organization Four Js Development Tools
Message-ID <[email protected]>
On 04/14/2014 04:01 PM, Tom Lane wrote:
> Sebastien FLAESCH <[email protected]> writes:
>> But when using an aggregate function like SUM(), PQfmode() function returns
>> "no information available" (-1) ...
>
>> Is the type of the result of an aggregate function (or even more complex
>> expressions) not known by the server?
>
> That's correct.

Thank you Tom, but then, IMHO, it should be considered as a request...

Some client applications (which do a bit more than just displaying the result
string of query columns) need that information, for ex to do data conversions,
automatic formatting, etc.

Seb


-- 
Sent via pgsql-interfaces mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-interfaces