Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 4AB179FA001 for ; Thu, 16 Nov 2006 12:45:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 75622-08-3 for ; Thu, 16 Nov 2006 12:45:26 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id DB6939FA088 for ; Thu, 16 Nov 2006 12:45:18 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from sd.tpf.co.jp (smtp.tpf.co.jp [210.161.239.34]) by svr4.postgresql.org (Postfix) with SMTP id B32D25AFCA1 for ; Thu, 16 Nov 2006 15:49:52 +0000 (GMT) Received: (qmail 21529 invoked from network); 16 Nov 2006 23:02:08 +0900 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 16 Nov 2006 23:02:08 +0900 Received: from unknown (HELO ?192.168.11.2?) (219.61.40.6) by sd.tpf.co.jp with SMTP; 16 Nov 2006 23:02:08 +0900 Message-ID: <455C6F5F.7000203@tpf.co.jp> Date: Thu, 16 Nov 2006 23:02:07 +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: <4553CAC6.5020001@tpf.co.jp> <4554463D.6000301@tpf.co.jp> <45549258.9010802@tpf.co.jp> <4557B1C5.1030200@tpf.co.jp> In-Reply-To: Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/48 X-Sequence-Number: 8430 Dmitry Samokhin wrote: >>> Could you try to set the Extra Opts option to 0x2 ? >>> >> With the current snapshot, please. >> I was able to reproduce the behavior here. >> >> regards, >> Hiroshi Inoue >> > > OK, now it works! Thanks for your attention. > But with Extra Opts = 0x0 it still issues 'SELECT 0' and assignes 0 to an > identity field. IMHO, if I don't want to read any server-assigned defaults > for a newly inserted row, any field not set explicitly should contain NULL > both before and after insert operation, not 0. > OK try the snapshot dll. 0x2 Extra Opts option is no longer needed for the case. Also changed to SELECT NULL in case of failure. regards, Hiroshi Inoue