Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f6ALQba20173 for ; Tue, 10 Jul 2001 17:26:37 -0400 (EDT) (envelope-from pgsql-interfaces-owner@postgresql.org) Received: from taru.tm.ee (taru.tm.ee [194.204.62.23]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f64FBGa50100 for ; Wed, 4 Jul 2001 11:11:16 -0400 (EDT) (envelope-from hannu@tm.ee) Received: from tm.ee (localhost.localdomain [127.0.0.1]) by taru.tm.ee (8.11.2/8.11.2) with ESMTP id f64FMgN14230; Wed, 4 Jul 2001 17:22:43 +0200 Message-ID: <3B4334C2.A6B6602C@tm.ee> Date: Wed, 04 Jul 2001 17:22:42 +0200 From: Hannu Krosing X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: et, en, ru MIME-Version: 1.0 To: Cedar Cox CC: Oscar Serrano , pgsql-interfaces@postgresql.org Subject: Re: non-us datestyle References: Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Archive-Number: 200107/48 X-Sequence-Number: 1801 Cedar Cox wrote: > > On Wed, 4 Jul 2001, Oscar Serrano wrote: > > > > > -----Mensaje original----- > > > De: pgsql-interfaces-owner@postgresql.org > > > [mailto:pgsql-interfaces-owner@postgresql.org]En nombre de Cedar Cox > > > Enviado el: miercoles, 04 de julio de 2001 14:53 > > > Para: pgsql-interfaces@postgresql.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