8.0b4: COMMIT outside of a transaction echoes ROLLBACK

From: Ian Barwick <barwick(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: 8.0b4: COMMIT outside of a transaction echoes ROLLBACK
Date: 2004-10-26 19:19:14
Message-ID: 1d581afe04102612194fd0ae7c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

just wondering:

test=> select version();
version
------------------------------------------------------------------------------------------
PostgreSQL 8.0.0beta4 on i686-pc-linux-gnu, compiled by GCC gcc (GCC)
3.3.3 (SuSE Linux)
(1 row)

test=> begin;
BEGIN
test=> commit;
COMMIT
test=> commit;
WARNING: there is no transaction in progress
ROLLBACK

Is there any reason ROLLBACK and not COMMIT is echoed here?

Ian Barwick
barwick(at)gmail(dot)com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-10-26 19:41:08 Re: timestamp with time zone a la sql99
Previous Message Tom Lane 2004-10-26 17:57:05 Re: New compile warnings in CVS