X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AF1AE3A3E4E for ; Tue, 23 Nov 2004 12:13:51 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 22108-07 for ; Tue, 23 Nov 2004 12:13:39 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 5327C3A3E45 for ; Tue, 23 Nov 2004 12:13:40 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CWZY7-0006Yx-00; Wed, 24 Nov 2004 01:13:35 +1300 Message-ID: <41A32A7D.2010102@opencloud.com> Date: Wed, 24 Nov 2004 01:18:05 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.9 (X11/20041115) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pg@fastcrypt.com Cc: Barry Lind , pgsql-jdbc@postgresql.org Subject: Re: When running with autocommit false only the first BEGIN References: <03E7D3E231BB7B4A915A6581D4296CC6C08C46@NSNOVPS00411.nacio.xythos.com> <41A30F2C.40801@opencloud.com> <41A32762.4000403@fastcrypt.com> In-Reply-To: <41A32762.4000403@fastcrypt.com> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime 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, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/184 X-Sequence-Number: 11606 Dave Cramer wrote: > That certainly doesn't seem acceptable. As Barry points out people will > really be in the dark when their code doesn't work. There's nothing much the driver can do about it other than not using the new features of V3. This needs a server-side fix. We could make BEGIN/COMMIT/ROLLBACK more visible at the (small) cost of an extra Parse on each execution. But you're still going to have the same problem with user queries once statements start using server-side prepare. See http://archives.postgresql.org/pgsql-hackers/2004-05/msg01173.php for past discussion. I looked at fixing it briefly but didn't have time to put together a patch. -O