Received: from mw.3com.com (intergate.usr.com [149.112.20.3]) by hub.org (8.8.8/8.7.5) with ESMTP id RAA23600; Mon, 24 Aug 1998 17:41:14 -0400 (EDT) Received: from mwgate02.mw.3com.com by mw.3com.com (8.8.5/3.1.090690-US Robotics) id QAA10136; Mon, 24 Aug 1998 16:45:10 -0500 (CDT) Received: by mwgate02.mw.3com.com(Lotus SMTP MTA v4.6.1 (569.2 2-6-1998)) id 8625666A.00777717 ; Mon, 24 Aug 1998 16:44:52 -0500 X-Lotus-FromDomain: 3COM@3COM-MWGATE From: "Sangeeta Rao" To: pgsql-general@postgresql.org, pgsql-interfaces@postgresql.org Message-ID: <8625666A.00731387.00@mwgate02.mw.3com.com> Date: Mon, 24 Aug 1998 16:41:12 -0500 Subject: Set DATESTYLE='ISO' (Postgres 6.3.2) Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline 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