agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Sebastien FLAESCH <sf@4js.com>
To: pgsql-sql@postgresql.org
Subject: Re: Determining the DATE format with libpq
Date: Fri, 25 Aug 2017 12:09:18 +0200
Message-ID: <ba3575db-7a3a-f1f7-1e22-8e6f044516bb@4js.com> (raw)
In-Reply-To: <350a1d87-6abc-f149-9251-e28285504301@4js.com>
References: <46935bcd-5754-9deb-fc63-8162bcdd4c46@4js.com>
	<16272.1503588417@sss.pgh.pa.us>
	<350a1d87-6abc-f149-9251-e28285504301@4js.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



view thread (5+ messages)

Message-ID: <ba3575db-7a3a-f1f7-1e22-8e6f044516bb@4js.com>
Permalink:  ../ba3575db-7a3a-f1f7-1e22-8e6f044516bb@4js.com/
Also on:    postgresql.org/message-id/ba3575db-7a3a-f1f7-1e22-8e6f044516bb@4js.com

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sf@4js.com
  Subject: Re: Determining the DATE format with libpq
  In-Reply-To: <ba3575db-7a3a-f1f7-1e22-8e6f044516bb@4js.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox