Re: [INTERFACES] Re: ODBC driver and Dates - Mailing list pgsql-interfaces

From Aleksey Demakov
Subject Re: [INTERFACES] Re: ODBC driver and Dates
Date
Msg-id 861zuxvvea.fsf@avd.garsib.ru
Whole thread Raw
In response to Re: ODBC driver and Dates  (Byron Nikolaidis <byronn@insightdist.com>)
Responses Re: [INTERFACES] Re: ODBC driver and Dates
Re: [INTERFACES] Re: ODBC driver and Dates
List pgsql-interfaces
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

pgsql-interfaces by date:

Previous
From: "Thomas G. Lockhart"
Date:
Subject: Re: [INTERFACES] Re: ODBC driver
Next
From: Vladas Lapinskas
Date:
Subject: subscribe