Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 682111337B80 for ; Thu, 31 Mar 2011 20:21:25 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 59496-01-3 for ; Thu, 31 Mar 2011 23:21:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from inconvenient.huggl.es (inconvenient.huggl.es [78.46.85.58]) by mail.postgresql.org (Postfix) with ESMTP id 028D01337C05 for ; Thu, 31 Mar 2011 20:21:12 -0300 (ADT) Received: from [192.168.2.203] (unknown [38.104.167.246]) by inconvenient.huggl.es (Postfix) with ESMTPSA id D546C2451D for ; Fri, 1 Apr 2011 00:21:11 +0100 (IST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1082) Subject: Re: JDBC gripe list (the autocommit subthread) From: "A.M." In-Reply-To: <4D94C299020000250003C0A7@gw.wicourts.gov> Date: Thu, 31 Mar 2011 19:21:10 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4D945B75020000250003BFF6@gw.wicourts.gov> <456773.73335.qm@web33201.mail.mud.yahoo.com> <4D94C299020000250003C0A7@gw.wicourts.gov> To: pgsql-jdbc@postgresql.org X-Mailer: Apple Mail (2.1082) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201103/170 X-Sequence-Number: 21725 On Mar 31, 2011, at 7:06 PM, Kevin Grittner wrote: > Oliver Jowett wrote: >=20 >> (b) the current behavior is consistent with how multiple statement >> execution works elsewhere in the driver, where if you execute >> "SELECT a; SELECT b" as a statement with autocommit=3Dtrue then the >> two queries run in a single transaction; >=20 > I did not know that. Is that required by spec? >=20 > It definitely doesn't happen in psql: psql includes an SQL lexer which breaks up the statements. Weird, but = true! = http://git.postgresql.org/gitweb?p=3Dpostgresql.git;a=3Dblob;f=3Dsrc/bin/p= sql/psqlscan.l;h=3D3575f91a61477f09c4939e53fb1495d763485e86;hb=3DHEAD#l117= 0 Note that the v2 backend protocol does not support multiple queries per = statement. Cheers, M=