Re: [SQL] Determining the DATE format with libpq

Поиск
Список
Период
Сортировка
От Sebastien FLAESCH
Тема Re: [SQL] Determining the DATE format with libpq
Дата
Msg-id 350a1d87-6abc-f149-9251-e28285504301@4js.com
обсуждение исходный текст
Ответ на Re: [SQL] Determining the DATE format with libpq  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [SQL] Determining the DATE format with libpq
Re: [SQL] Determining the DATE format with libpq
Список pgsql-sql
Whoooooo that's perfect!!!

I hope it has not a big cost?

Can I use this each time I fetch a result set?

Even row by row with a server cursor?

Seb

On 08/24/2017 05:26 PM, Tom Lane wrote:
> 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 по дате отправления:

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