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 AB60F9DC81E for ; Mon, 13 Mar 2006 06:37:50 -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 07002-07 for ; Mon, 13 Mar 2006 06:37:52 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from samwel.tk (bsamwel.xs4all.nl [82.92.179.183]) by postgresql.org (Postfix) with ESMTP id 719D29DC814 for ; Mon, 13 Mar 2006 06:37:48 -0400 (AST) Received: from localhost ([127.0.0.1]) by samwel.tk with esmtp (Exim 4.60) (envelope-from ) id 1FIkQt-0002yb-EK for pgsql-odbc@postgresql.org; Mon, 13 Mar 2006 11:37:47 +0100 Message-ID: <44154B58.1050709@samwel.tk> Date: Mon, 13 Mar 2006 11:37:12 +0100 From: Bart Samwel User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Most recent driver aborts transaction after one error Content-Type: multipart/mixed; boundary="------------030509070803050902060909" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: bart@samwel.tk X-SA-Exim-Scanned: No (on samwel.tk); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.003 required=5 tests=[AWL=0.003] X-Spam-Score: 0.003 X-Spam-Level: X-Archive-Number: 200603/101 X-Sequence-Number: 7387 This is a multi-part message in MIME format. --------------030509070803050902060909 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. Was this behaviour changed on purpose, and if so, why? Please enlighten me! --Bart P.S.: I'm not subscribed to the list, please keep me CC'ed! --------------030509070803050902060909 Content-Type: text/plain; name="mylog_1332.log" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mylog_1332.log" [3348]globals.extra_systable_prefixes = 'dd_;' [3348]aszKey='DSN', value='postgres' [3348]copyAttributes: DSN='postgres',server='',dbase='',user='',passwd='xxxxx',port='',sslmode='',onlyread='',conn_settings='',disallow_premature=-1) [3348]globals.extra_systable_prefixes = 'dd_;' [3348]globals.extra_systable_prefixes = 'dd_;' --------------030509070803050902060909--