From: | Hannu Krosing <hannu(at)tm(dot)ee> |
---|---|
To: | Cedar Cox <cedarc(at)visionforisrael(dot)com> |
Cc: | Oscar Serrano <oserra(at)fondos(dot)net>, pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: non-us datestyle |
Date: | 2001-07-04 15:22:42 |
Message-ID: | 3B4334C2.A6B6602C@tm.ee |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces pgsql-odbc |
Cedar Cox wrote:
>
> On Wed, 4 Jul 2001, Oscar Serrano wrote:
> >
> > > -----Mensaje original-----
> > > De: pgsql-interfaces-owner(at)postgresql(dot)org
> > > [mailto:pgsql-interfaces-owner(at)postgresql(dot)org]En nombre de Cedar Cox
> > > Enviado el: miercoles, 04 de julio de 2001 14:53
> > > Para: pgsql-interfaces(at)postgresql(dot)org
> > > Asunto: [INTERFACES] non-us datestyle
> > >
> > > Is there a way to set the default date style to non-US (European)? I
> > > didn't see any compile or run time options, just per connection options.
> > > (pg v1.7)
> > >
> > > -Cedar
> >
> > Well I'm not sure if you are asking for this but...
> > If you define the shell variable PGDATESTYLE to, for example, SQL, all date
> > are returned like this:
> > dd/mm/yyyy
> > There are serveral values you can assign to PGDATESTYLE.
> > You can execute, prior to a query this sentence:
> > SET DATESTYLE TO SQL
>
> I'll be using ODBC so there's no shell variable to set... This is why I
> want a global option.
IIRC, ODBC driver allows you to specify a set of queries to run right
after connect.
You can put your SET DATESTYLE TO XXX; there
----------------
Hannu
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-07-04 15:56:06 | Re: non-us datestyle |
Previous Message | Michael Davis | 2001-07-04 15:21:55 | RE: RE: Question |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-07-04 15:56:06 | Re: non-us datestyle |
Previous Message | Oscar Serrano | 2001-07-04 15:18:50 | RE: non-us datestyle |