Re: Multiple semicolon separated statements and autocommit

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Rene Pijlman <rene(at)lab(dot)applinet(dot)nl>, <pgsql-hackers(at)postgresql(dot)org>, <barry(at)xythos(dot)com>
Subject: Re: Multiple semicolon separated statements and autocommit
Date: 2001-08-31 08:51:09
Message-ID: Pine.LNX.4.30.0108311050390.679-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Christopher Kings-Lynne writes:

> Are you sure?

Yes.

> I thought all that autocommit meant was that a statement that
> is not enclosed within a begin/commit is automatically committed after it is
> run. So, in the this case all three queries will be independent, unless the
> first statements is a 'begin;' and the last is a 'commit;'...

Not if they're sent in the same query string.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Rene Pijlman 2001-08-31 10:02:40 Re: Multiple semicolon separated statements and autocommit
Previous Message Hannu Krosing 2001-08-31 03:52:35 Re: Escaping strings for inclusion into SQL queries