X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EC8FF32A031 for ; Tue, 28 Sep 2004 21:32:00 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 68876-09 for ; Tue, 28 Sep 2004 20:31:41 +0000 (GMT) Received: from web20825.mail.yahoo.com (web20825.mail.yahoo.com [216.136.227.164]) by svr1.postgresql.org (Postfix) with SMTP id F0B1D32A0CC for ; Tue, 28 Sep 2004 21:31:06 +0100 (BST) Message-ID: <20040928203057.45841.qmail@web20825.mail.yahoo.com> Received: from [24.248.12.141] by web20825.mail.yahoo.com via HTTP; Tue, 28 Sep 2004 13:30:57 PDT Date: Tue, 28 Sep 2004 13:30:57 -0700 (PDT) From: Jeff Eckermann Subject: Re: basic questions with odbc and visual basic. To: Merlin Moncure Cc: pgsql-odbc@postgresql.org In-Reply-To: <6EE64EF3AB31D5448D0007DD34EEB3412A74CD@Herge.rcsinc.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/96 X-Sequence-Number: 4471 --- Merlin Moncure 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