Re: JDBC gripe list (the autocommit subthread) - Mailing list pgsql-jdbc

From A.M.
Subject Re: JDBC gripe list (the autocommit subthread)
Date
Msg-id FC2AAAA8-A419-4305-88BA-A5C14AC6CAD8@themactionfaction.com
Whole thread Raw
In response to Re: JDBC gripe list (the autocommit subthread)  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: JDBC gripe list (the autocommit subthread)
List pgsql-jdbc
On Mar 31, 2011, at 7:06 PM, Kevin Grittner wrote:

> Oliver Jowett <oliver@opencloud.com> wrote:
>
>> (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=true then the
>> two queries run in a single transaction;
>
> I did not know that.  Is that required by spec?
>
> 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=postgresql.git;a=blob;f=src/bin/psql/psqlscan.l;h=3575f91a61477f09c4939e53fb1495d763485e86;hb=HEAD#l1170

Note that the v2 backend protocol does not support multiple queries per statement.

Cheers,
M

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: JDBC gripe list (the autocommit subthread)
Next
From: Oliver Jowett
Date:
Subject: Re: JDBC gripe list (the autocommit subthread)