Re: [INTERFACES] Access'97 and ODBC

From: Hannu Krosing <hannu(at)trust(dot)ee>
To: "Jose' Soares Da Silva" <sferac(at)bo(dot)nettuno(dot)it>
Cc: pgsql-interfaces(at)postgreSQL(dot)org, Byron Nikolaidis <byronn(at)insightdist(dot)com>
Subject: Re: [INTERFACES] Access'97 and ODBC
Date: 1998-04-28 14:51:02
Message-ID: 3545ECD6.5615904D@sid.trust.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

Jose' Soares Da Silva wrote:
>
> I have a table with field1 DATE and field2 TIMESTAMP. If I insert data
> into these fields, field2 looks OK, but Access97 show me a strange
> date on field1.
>
> This is Access97 output:
> field1: 27/7/99
> field2: 1998-04-27 12:20:21+02
>
> This is psql output:
> Field | Value
> -- RECORD 0 --
> field1| 1998-04-27
> field2| 1998-04-27 12:20:21+02
> ----
> PS: My DateStyle is setting to 'ISO'

You should set it to 'US' when using Insight ODBC drivers.

It should affect the output in no way, but the driver expects it from
the backend in US format. As this is a per-connection setting it can
safely be set from the driver at startup without affecting other
connections.

There has been some discussion about 'fixing' it and making the
driver recognize other date formats. That would be IMHO unnecessary.
It should be enough just to do "SET DateStyle TO 'US';" at startup.

This can be currently done by setting some registry entries, but
this should really be just a part of driver startup.

Hannu

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Zeugswetter 1998-04-28 16:10:34 AW: [HACKERS] Re: Bug#21681: postgresql: Doesn't allow granting to www-data
Previous Message Oliver Elphick 1998-04-28 14:47:25 Re: [HACKERS] Re: Bug#21681: postgresql: Doesn't allow granting to www-data

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 1998-04-28 16:21:55 Revised proposal for libpq and FE/BE protocol changes
Previous Message Hannu Krosing 1998-04-28 07:43:03 Re: New Driver and Unique Indexes