pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: A.M. <agentm@themactionfaction.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: JDBC gripe list (the autocommit subthread)
Date: Thu, 31 Mar 2011 19:21:10 -0400
Message-ID: <FC2AAAA8-A419-4305-88BA-A5C14AC6CAD8@themactionfaction.com> (raw)
In-Reply-To: <4D94C299020000250003C0A7@gw.wicourts.gov>
References: <4D945B75020000250003BFF6@gw.wicourts.gov>
	<456773.73335.qm@web33201.mail.mud.yahoo.com>
	<AANLkTi=Bcs6ZoWfE9tbA0RpSVjD3j4G98rKXXPs1fUcE@mail.gmail.com>
	<4D94C299020000250003C0A7@gw.wicourts.gov>


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=3575f91a61477f0...

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

Cheers,
M


view thread (21+ messages)  latest in thread

Message-ID: <FC2AAAA8-A419-4305-88BA-A5C14AC6CAD8@themactionfaction.com>
Permalink:  ../FC2AAAA8-A419-4305-88BA-A5C14AC6CAD8@themactionfaction.com/
Also on:    postgresql.org/message-id/FC2AAAA8-A419-4305-88BA-A5C14AC6CAD8@themactionfaction.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: agentm@themactionfaction.com
  Subject: Re: JDBC gripe list (the autocommit subthread)
  In-Reply-To: <FC2AAAA8-A419-4305-88BA-A5C14AC6CAD8@themactionfaction.com>
  References: <4D945B75020000250003BFF6@gw.wicourts.gov> <456773.73335.qm@web33201.mail.mud.yahoo.com> <AANLkTi=Bcs6ZoWfE9tbA0RpSVjD3j4G98rKXXPs1fUcE@mail.gmail.com> <4D94C299020000250003C0A7@gw.wicourts.gov> <FC2AAAA8-A419-4305-88BA-A5C14AC6CAD8@themactionfaction.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox