Re: Determining the DATE format with libpq

From: Sebastien FLAESCH <sf(at)4js(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Determining the DATE format with libpq
Date: 2017-08-25 10:09:18
Message-ID: ba3575db-7a3a-f1f7-1e22-8e6f044516bb@4js.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Seems that even if one can change the date style while fetching rows from a
server cursor, the date format returned by PQgetvalue() does not change in
the middle of a result set processing, which is obviously better.

So we just need to inspect the date format when opening the cursor and
stuck to that format for result set values processing.

Seb

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message anand086 2017-08-26 05:38:13 Execute format Insert sql failing with query string argument of EXECUTE is null for column with timestamp with timezone
Previous Message Sebastien FLAESCH 2017-08-25 08:13:19 Re: Determining the DATE format with libpq