Received: from localhost (uranus.hub.org [200.46.204.60]) by postgresql.org (Postfix) with ESMTP id BB6ED9FB221 for ; Thu, 9 Nov 2006 20:41:50 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.60]) (amavisd-new, port 10024) with ESMTP id 19091-05 for ; Thu, 9 Nov 2006 20:41:48 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 67C529FB2BD for ; Thu, 9 Nov 2006 20:41:47 -0400 (AST) Received: (qmail 2088 invoked from network); 10 Nov 2006 09:41:43 +0900 Received: from unknown (HELO ?100.0.32.170?) (100.0.32.170) by sd2.tpf-fw-c.co.jp with SMTP; 10 Nov 2006 09:41:43 +0900 Message-ID: <4553CAC6.5020001@tpf.co.jp> Date: Fri, 10 Nov 2006 09:41:42 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Dmitry Samokhin CC: pgsql-odbc@postgresql.org Subject: Re: Serial columns and ADO References: In-Reply-To: Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/21 X-Sequence-Number: 8403 Dmitry Samokhin wrote: > As far as I understand, since the driver exposes 'serial' columns > as 'AutoNumber', ADO issues 'SELECT @@IDENTITY' to retreive the new > generated values just after inserts. The driver, in turn, has to modify that > query into 'SELECT currval(...)'. > > When working with PG tables from inside MS Access, it all works perfectly! > But here is a small test suite that doesn't work as expected: Please try the snapshot dll at http://www.geocities.jp/inocchichichi/psqlodbc/index.html . regards, Hiroshi Inoue