Fix for error in autocommit off

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Fix for error in autocommit off
Date: 2003-03-19 20:24:39
Message-ID: 200303192024.h2JKOdD07726@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom pointed out a problem with our current error handling with
autocommit off:

SET autocommit TO off;
lkjasdfasdf;
SELECT 1;
COMMIT;

In our current code, SELECT is considred to be in a new transaction.
This patch fixes that by making the SELECT be part of the aborted
transaction. Basically we didn't have proper autocommit handling in the
abort function.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 705 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2003-03-19 20:31:51 Re: PostgreSQL flamage on Slashdot
Previous Message Manfred Koizar 2003-03-19 19:36:10 Re: Nested transactions: low level stuff