X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id CD00C9DC840 for ; Thu, 16 Mar 2006 19:56:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 35504-02 for ; Thu, 16 Mar 2006 19:56:23 -0400 (AST) 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 E7AC19DC828 for ; Thu, 16 Mar 2006 19:56:17 -0400 (AST) Received: (qmail 9714 invoked from network); 17 Mar 2006 08:56:20 +0900 Received: from unknown (HELO ?100.0.32.145?) (100.0.32.145) by sd2.tpf-fw-c.co.jp with SMTP; 17 Mar 2006 08:56:20 +0900 Message-ID: <4419FB0A.3000905@tpf.co.jp> Date: Fri, 17 Mar 2006 08:55:54 +0900 From: Hiroshi Inoue User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: ja, en-us, en MIME-Version: 1.0 To: Bart Samwel CC: pgsql-odbc@postgresql.org Subject: Re: Most recent driver aborts transaction after one error References: <44194B56.5050304@samwel.tk> In-Reply-To: <44194B56.5050304@samwel.tk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.904 required=5 tests=[AWL=0.093, RCVD_IN_WHOIS_BOGONS=1.811] X-Spam-Score: 1.904 X-Spam-Level: * X-Archive-Number: 200603/80 X-Sequence-Number: 7366 Bart Samwel wrote: > Hi there, > > I have just upgraded to PostgreSQL 8.1 and I have encountered the > following problem. When I connect through psqlODBC 8.01.0200 (PostgreSQL > Unicode), a sequence like the following: > > > DROP SEQUENCE BAZ; > SELECT 1; > > will give an error on the DROP SEQUENCE: > > "42P01: Error while executing the query; > ERROR: sequence "app_bod_seq" does not exist" > > and will then give an error on the SELECT 1: > > "25P02: Error while executing the query; > ERROR: current transaction is aborted, commands ignored until end of > transaction block" > > When connecting through the psqlODBC 8.00.0102, I do *not* get the > second error. This is, in fact, what I would expect. It is also what > pretty much all other databases do (our application also runs on > Informix, Firebird, Oracle and MS SQL Server, and they all allow failed > commands in transactions without forcing a rollback). And it is what the > 8.00.0102 driver did (or appeared to do?). Was this behaviour changed on > purpose, and if so, why? And is there a way to work around it? ;-) Please try Experimental Enhanced Branch(psqlODBC 07.03.0260) at http://pgfoundry.org/projects/psqlodbc/ . You can specify the *Level of rollback on errors* option as *Statement* using the version. In addtion you had better replace the psqlodbc35w.dll with the one at http://www.geocities.jp/inocchichichi/psqlodbc/index.html because it constains bug fixes for George Weaver's problem and (at least a part of) Daniel Holm's problem. regards, Hiroshi Inoue