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

Поиск
Список
Период
Сортировка
От Sebastien FLAESCH
Тема Re: Type identification with libpq / PQFmod() when using aggregates (SUM)
Дата
Msg-id 534BEF93.40307@4js.com
обсуждение исходный текст
Ответ на Re: Type identification with libpq / PQFmod() when using aggregates (SUM)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-interfaces
On 04/14/2014 04:01 PM, Tom Lane wrote:
> Sebastien FLAESCH <sf@4js.com> 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



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Type identification with libpq / PQFmod() when using aggregates (SUM)
Следующее
От: למען העתיד
Дата:
Сообщение: הורה טוב יותר