pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sangeeta Rao <Sangeeta_Rao@mw.3com.com>
To: pgsql-general@postgresql.org
To: pgsql-interfaces@postgresql.org
Subject: Set DATESTYLE='ISO' (Postgres 6.3.2)
Date: Mon, 24 Aug 1998 16:41:12 -0500
Message-ID: <8625666A.00731387.00@mwgate02.mw.3com.com> (raw)


Hi,

I am using Postgresql 6.3.2 and would like to set the datestyle to be ISO.

Here is what I did:

- issued "set datestyle='ISO' " using PQexec() after opening a connection
with the database. (no errors)
- Then checked the datestyle from psql
dbxxx=> show datestyle ;
response:
NOTICE: DateStyle is Postgres with US (NonEuropean) conventions.
- Also, when I open a jdbc connection with debug tracing on I notice that
 the datestyle is Postgres

Why so?? Is this a bug or am I missing something?

Instead of issuing 'set datestyle' command if I set the environment
variable
'PGDATESTYLE' to ISO it works fine but I would like to avoid having to do
this.
What do I need to do to get the sql command 'set datestyle' to work??
I appreciate any help.

Thank You,
SR










view thread (2+ messages)  latest in thread

Message-ID: <8625666A.00731387.00@mwgate02.mw.3com.com>
Permalink:  ../8625666A.00731387.00@mwgate02.mw.3com.com/
Also on:    postgresql.org/message-id/8625666A.00731387.00@mwgate02.mw.3com.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-interfaces@postgresql.org
  Cc: Sangeeta_Rao@mw.3com.com, pgsql-general@postgresql.org
  Subject: Re: Set DATESTYLE='ISO' (Postgres 6.3.2)
  In-Reply-To: <8625666A.00731387.00@mwgate02.mw.3com.com>

* 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