Re: [INTERFACES] Re: ODBC driver and Dates

From: Stephen Davies <scldad(at)sdc(dot)com(dot)au>
To: Aleksey Demakov <avd(at)avd(dot)garsib(dot)ru>
Cc: pgsql-interfaces(at)postgreSQL(dot)org, byronn(at)insightdist(dot)com
Subject: Re: [INTERFACES] Re: ODBC driver and Dates
Date: 1998-04-17 06:52:48
Message-ID: 199804170652.QAA27480@mustang.sdc.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Surely the way to go is to retrieve the date style from Windows. That is, use
the setting in Control Panel Regional Settings.

This can also be used to pick up decimal point and currency settings.

Cheers,
Stephen.

> Byron Nikolaidis <byronn(at)insightdist(dot)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(at)avd(dot)garsib(dot)ru

========================================================================
Stephen Davies Consulting scldad(at)sdc(dot)com(dot)au
Adelaide, South Australia. Voice: 61-8-82728863
Computing & Network solutions. Fax: 61-8-82741015

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Stephen Davies 1998-04-17 06:55:46 Re: ODBC driver
Previous Message Aleksey Demakov 1998-04-17 06:01:48 Re: [INTERFACES] Re: ODBC driver and Dates