From: | Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Cedar Cox <cedarc(at)visionforisrael(dot)com>, pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: non-us datestyle |
Date: | 2001-07-04 23:15:34 |
Message-ID: | 3B43A396.80E29B14@tpf.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces pgsql-odbc |
Tom Lane wrote:
>
> Cedar Cox <cedarc(at)visionforisrael(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Sudheer Palapparambil | 2001-07-05 06:44:32 | PL/PGSQL |
Previous Message | NTB Technical Support | 2001-07-04 17:14:22 | ADO and ODBC |
From | Date | Subject | |
---|---|---|---|
Next Message | Cedar Cox | 2001-07-05 08:34:43 | Re: non-us datestyle |
Previous Message | Oscar Serrano | 2001-07-04 16:43:36 | RE: non-us datestyle |