From: | Damon Cokenias <lists(at)mtn-palace(dot)com> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Cc: | "Alex Cheung Tin Ka" <tkcheung(at)vtc(dot)edu(dot)hk> |
Subject: | Re: remove warning |
Date: | 2002-04-15 05:14:29 |
Message-ID: | p04310107b8e011023422@[10.0.1.9] |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
At 11:59 AM +0800 4/15/02, Alex Cheung Tin Ka wrote:
>Dear All,
> I am using pgsql 7.2. The server always generate following warning message:
> NOTICE: ROLLBACK: no transaction in progress
>
> I would like to know how to get rid of such messages
This message indicates a problem with your query. You can only use the ROLLBACK command after starting a transaction with the BEGIN command.
Example:
good:
BEGIN
DELETE FROM table;
ROLLBACK;
bad:
DELETE FROM table;
ROLLBACK;
bad:
BEGIN;
DELETE FROM table;
COMMIT;
ROLLBACK;
bad:
BEGIN;
DELETE FROM table;
ROLLBACK;
ROLLBACK;
From | Date | Subject | |
---|---|---|---|
Next Message | Marin Dimitrov | 2002-04-15 08:40:10 | (repost) Invalid Unicode character |
Previous Message | Alex Cheung Tin Ka | 2002-04-15 03:59:45 | remove warning |