From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Cedar Cox <cedarc@visionforisrael.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: non-us datestyle
Date: Thu, 05 Jul 2001 08:15:34 +0900
Message-ID: <3B43A396.80E29B14@tpf.co.jp> (raw)
References: <Pine.LNX.4.21.0107041551020.21649-100000@nanu.visionforisrael.com>
<27753.994262166@sss.pgh.pa.us>
Tom Lane wrote:
>
> Cedar Cox <cedarc@visionforisrael.com> writes:
> > Is there a way to set the default date style to non-US (European)?
>
> You can set PGDATESTYLE in the postmaster's environment, I think.
>
> This should be a GUC variable (hence settable in postgresql.conf)
> but isn't yet.
>
psqlodbc driver seems to set the DateStyle for itself in
interfaces/odbc/connection.c.
/* Set the Datestyle to the format the driver expects it to be in */
result = SQLExecDirect(hstmt, "set DateStyle to 'ISO'", SQL_NTS);
regards,
Hiroshi Inoue
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-interfaces@postgresql.org
Cc: Inoue@tpf.co.jp, tgl@sss.pgh.pa.us, cedarc@visionforisrael.com
Subject: Re: non-us datestyle
In-Reply-To: <3B43A396.80E29B14@tpf.co.jp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox