From: Jeff Eckermann <jeff_eckermann@yahoo.com>
To: Merlin Moncure <merlin.moncure@rcsonline.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: basic questions with odbc and visual basic.
Date: Tue, 28 Sep 2004 13:30:57 -0700 (PDT)
Message-ID: <20040928203057.45841.qmail@web20825.mail.yahoo.com> (raw)
In-Reply-To: <6EE64EF3AB31D5448D0007DD34EEB3412A74CD@Herge.rcsinc.local>
--- Merlin Moncure <merlin.moncure@rcsonline.com>
wrote:
> > Do you have driver option "Row Versioning" set to
> > true? I'm vague on the details, but I suspect
> that
> > may help.
> >
>
> That did the trick...bless you.
Access (can't answer for VB) handles concurrency on
updates by checking whether the data has changed since
the row was first fetched. If you have a unique rowid
(which is what "row versioning" implies), then that is
used for comparison (the psqlodbc driver uses the ctid
value for that). Otherwise, every field is checked,
as you were seeing. If any of the data has changed,
the row is presumed to have been changed by another
user in the meantime, and the update will fail with an
error message saying so.
The problem with timestamps is that Access does not
handle fractional seconds, whereas PostgreSQL
timestamps do by default, so timestamp comparisons
become problematic. None of my apps require
fractional seconds resolution, so I usually use
timestamp(0) for tables that I know will be used by an
Access application.
This is all overview; I have no idea where in the
chain this is implemented.
>
> FWIW, I tracked down the failed updates to Access
> chopping timestamp
> column to nearest second (note: this was not a field
> I was trying to
> update). The timestamp was wrapped in a domain
> which may have caused
> the problem. Have confirmed both successful edit of
> regular table in
> both access and vb.
>
> Merlin
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
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-odbc@postgresql.org
Cc: jeff_eckermann@yahoo.com, merlin.moncure@rcsonline.com
Subject: Re: basic questions with odbc and visual basic.
In-Reply-To: <20040928203057.45841.qmail@web20825.mail.yahoo.com>
References: <6EE64EF3AB31D5448D0007DD34EEB3412A74CD@Herge.rcsinc.local> <20040928203057.45841.qmail@web20825.mail.yahoo.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