X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 5D39F9FB1EA for ; Wed, 23 Aug 2006 21:08:53 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 63033-09 for ; Wed, 23 Aug 2006 21:08:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sd.tpf.co.jp (mail.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 10F139FB1D7 for ; Wed, 23 Aug 2006 21:08:46 -0300 (ADT) Received: (qmail 3391 invoked from network); 24 Aug 2006 09:07:49 +0900 Received: from unknown (HELO ?100.0.32.123?) (100.0.32.123) by sd2.tpf-fw-c.co.jp with SMTP; 24 Aug 2006 09:07:49 +0900 Message-ID: <44ECEDB7.6010607@tpf.co.jp> Date: Thu, 24 Aug 2006 09:07:19 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Andreas CC: pgsql-odbc@postgresql.org Subject: Re: ADO and sequences References: <44EB410A.10809@gmx.net> <44EC1689.8080907@tpf.co.jp> <44ECB839.3080903@gmx.net> In-Reply-To: <44ECB839.3080903@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.749 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200608/87 X-Sequence-Number: 8051 Andreas wrote: > > > Hiroshi Inoue schrieb: >> Andreas wrote: >>> rs.AddNew >>> lngID = rs!id >> Try to get rs!id here is meaningless but >>> rs!field1 = value1 >>> rs!field2 = value2 >>> .... >>> rs.update >> you can get rs!id here maybe. >> Am I misunderstanding your point ? >>> rs.close > > I tried this before my initial mail. > Even though in the table definition is > id serial not null, > primary key (id) > I still get rs!id = NULL after rs.addnew as well as after rs.update > > Maybe your driver behaves differently to the still official 08.01.0200? The driver doesn't support Updatable Cursors. Please install the 8.2.0002 version from the site http://pgfoundry.org/projects/psqlodbc/ and turn on the Updatable Cursors option. After that you can also use the snapshot driver at http://www.geocities.jp/inocchichichi/psqlodbc/index.html . The registration is the same as the 8.2.0002 version and you can simply replace the dll psqlodbc35w.dll. Please note that you would be able to see the result after calling update() not after Addnew(). regards, Hiroshi Inoue