From: Aleksey Demakov <avd@avd.garsib.ru>
To: pgsql-interfaces@postgresql.org
Cc: byronn@insightdist.com
Subject: Re: [INTERFACES] Re: ODBC driver and Dates
Date: 17 Apr 1998 13:01:48 +0700
Message-ID: <861zuxvvea.fsf@avd.garsib.ru> (raw)
References: <199804160750.RAA27706@mustang.sdc.com.au>
<3535FD96.DF9F603F@sid.trust.ee>
<353657E1.5955C81C@insightdist.com>
Byron Nikolaidis <byronn@insightdist.com> writes:
> Should the driver query the database (i.e., "show datestyle") to see what format
> it should use, -OR-, should it be an option for the datasource, where you select
> what style to use, and the driver sets the style when it makes a connection
> ("set datestyle")?
I beleave there is no need for such an option. The only thing is
needed that ODBC-driver and Postgres use the same format during
connection. Thus opening connection ODBC-driver should always set
the datestyle which it uses. Asking the datestyle from backend and
than using appropriate conversion is posible but why to bother with
this while the opposite (instructing backend what datestyle to use)
is much simpler to implement and will work equaly well?
Aleksey
--
Aleksey Demakov
avd@avd.garsib.ru
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: avd@avd.garsib.ru, byronn@insightdist.com
Subject: Re: [INTERFACES] Re: ODBC driver and Dates
In-Reply-To: <861zuxvvea.fsf@avd.garsib.ru>
* 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