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 96161329F32 for ; Tue, 28 Sep 2004 16:26:54 +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 84160-04 for ; Tue, 28 Sep 2004 15:26:49 +0000 (GMT) Received: from web20824.mail.yahoo.com (web20824.mail.yahoo.com [216.136.227.140]) by svr1.postgresql.org (Postfix) with SMTP id 1B9D9329C65 for ; Tue, 28 Sep 2004 16:26:48 +0100 (BST) Message-ID: <20040928152646.39966.qmail@web20824.mail.yahoo.com> Received: from [24.248.12.141] by web20824.mail.yahoo.com via HTTP; Tue, 28 Sep 2004 08:26:46 PDT Date: Tue, 28 Sep 2004 08:26:46 -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: <6EE64EF3AB31D5448D0007DD34EEB3412A74C8@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/88 X-Sequence-Number: 4463 Do you have driver option "Row Versioning" set to true? I'm vague on the details, but I suspect that may help. --- Merlin Moncure wrote: > > For manipulating the data -- Access works pretty > good as long as > Access > > can know which record(s) to update (primary keys > or OIDs -- that sort > of > > thing). > > > Looking deeper it seems all my problems are really > boiling down to one > problem: the where clause used to update the edited > record back to the > server. Both access and vb generate a where clause > that includes every > field in the table instead of the p-key. For > various sundry reasons > such as improper handling of null values, etc. this > where clause gets > busted. This problem is aggravated by the fact that > all my domains get > treated as text types, although this is correctable > by using a view > which I was planning to use anyways (aside: I make > heavy use of > domains). This busted where clause trips up vb and > access in different > ways. This may be a case where I may want to > explore hacking the odbc > driver to get it to do what I want, depending on who > is building the > clause. My guess is the ado driver is building it > so I'm basically > hosed. It's really queer to me that they use the > p-key to pull the data > out and the entire record to write the data > back...what's the point of > the p-key anyways? > > The odbc driver is supposed to have a property > exposed to the ado > wrapper that allows you to constrain the write-back > where clause to > different things, but apparently this does not work > in pgsql-odbc. > > I tried the ole db driver and got nowhere, couldn't > even get a basic > connection. Hopefully I can get this corrected and > work with this > driver a little bit. I have about two weeks to > figure out the best way > to proceed. So far, I'm really unimpressed with the > ado architecture, > this being my first real experience with it (as > compared to ado.net, > which is a dream to work with). > > Merlin > > ---------------------------(end of > broadcast)--------------------------- > TIP 7: don't forget to increase your free space map > settings > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail