From: Jose' Soares Da Silva <sferac@bo.nettuno.it>
To: Hannu Krosing <hannu@trust.ee>
Cc: pgsql-interfaces@postgreSQL.org, Byron Nikolaidis <byronn@insightdist.com>
Subject: Re: [INTERFACES] Access'97 and ODBC
Date: Thu, 30 Apr 1998 15:36:00 +0000 (UTC)
Message-ID: <Pine.LNX.3.96.980430152620.431D-100000@proxy.bazzanese.com> (raw)
In-Reply-To: <3545ECD6.5615904D@sid.trust.ee>
Thanks to every body that replied my question. Now dates are Ok.
Now I have another problem using M$-Access;
I have a table like this one:
Table = comuni
+------------------------------+----------------------------------+-------+
| Field | Type | Length|
+------------------------------+----------------------------------+-------+
| istat | char() not null | 6 |
| nome | varchar() | 50 |
| provincia | char() | 2 |
| codice_fiscale | char() | 4 |
| cap | char() | 5 |
| regione | char() | 3 |
| distretto | char() | 4 |
+------------------------------+----------------------------------+-------+
... in this table I have stored 8k rows, if I load it from M$-Access and
then I modify a row and I try to save it to database, it goes in a loop
I don't know what's happening.
Please help me. Thanks, Jose'
On Tue, 28 Apr 1998, Hannu Krosing wrote:
> 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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-interfaces@postgresql.org
Cc: sferac@bo.nettuno.it, hannu@trust.ee, byronn@insightdist.com
Subject: Re: [INTERFACES] Access'97 and ODBC
In-Reply-To: <Pine.LNX.3.96.980430152620.431D-100000@proxy.bazzanese.com>
References: <3545ECD6.5615904D@sid.trust.ee> <Pine.LNX.3.96.980430152620.431D-100000@proxy.bazzanese.com>
* 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