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 5C8FD9FB1F2 for ; Wed, 23 Aug 2006 17:14:00 -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 27888-04 for ; Wed, 23 Aug 2006 17:13:50 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by postgresql.org (Postfix) with SMTP id C6DC39FB1EC for ; Wed, 23 Aug 2006 17:13:49 -0300 (ADT) Received: (qmail invoked by alias); 23 Aug 2006 20:13:47 -0000 Received: from i3ED6CEA5.versanet.de (EHLO [192.168.0.108]) [62.214.206.165] by mail.gmx.net (mp018) with SMTP; 23 Aug 2006 22:13:47 +0200 X-Authenticated: #14269776 Message-ID: <44ECB839.3080903@gmx.net> Date: Wed, 23 Aug 2006 22:19:05 +0200 From: Andreas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8.0.6) Gecko/20060729 SeaMonkey/1.0.4 MIME-Version: 1.0 CC: pgsql-odbc@postgresql.org Subject: Re: ADO and sequences References: <44EB410A.10809@gmx.net> <44EC1689.8080907@tpf.co.jp> In-Reply-To: <44EC1689.8080907@tpf.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.137 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/86 X-Sequence-Number: 8050 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 problem affects not only the serial column but also a timestamp(0) that defaults to NOW() and another timestamp(0) that gets set by a trigger after every update. All 3 debug.print as NULL in the recordset after the UPDATE. Obviously those dynamically created values get into the table since I see them with pgAdmin but the newly created record isn't automatically read back into Access's adodb.recordset object. BTW there is a difference between adUseClient and adUseServer. With adUseServer isEmpty(r!id) shows TRUE and the automatic columns show nothing with debug.print. Whereas with adUseClient isEmpty(r!id) is FALSE and the 3 columns print as NULL. Do you have further advise?