Re: [SQL] Determining the DATE format with libpq

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [SQL] Determining the DATE format with libpq
Дата
Msg-id 16272.1503588417@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [SQL] Determining the DATE format with libpq  (Sebastien FLAESCH <sf@4js.com>)
Ответы Re: [SQL] Determining the DATE format with libpq
Список pgsql-sql
Sebastien FLAESCH <sf@4js.com> writes:
> Is there a way to know the current date format used in the SQL session?
> Ideally, we expect a libpq API.

Use PQparameterStatus().

> We cannot do a "SHOW DateStyle" each time we executing a SELECT!

You don't have to --- the server automatically reports changes in the
value of that parameter.
        regards, tom lane



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

Предыдущее
От: Sebastien FLAESCH
Дата:
Сообщение: [SQL] Determining the DATE format with libpq
Следующее
От: Sebastien FLAESCH
Дата:
Сообщение: Re: [SQL] Determining the DATE format with libpq