Re: 8.0b4: COMMIT outside of a transaction echoes ROLLBACK

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: 8.0b4: COMMIT outside of a transaction echoes ROLLBACK
Дата
Msg-id 200410271800.i9RI0Po28721@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: 8.0b4: COMMIT outside of a transaction echoes  (Oliver Elphick <olly@lfix.co.uk>)
Ответы Re: 8.0b4: COMMIT outside of a transaction echoes ROLLBACK  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Oliver Elphick wrote:
> On Tue, 2004-10-26 at 21:42 -0400, Bruce Momjian wrote:
> > > 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?
> > 
> > Because the transaction was not committed, but rather rolled back.
> 
> It's still a misleading message; in those circumstances, how about
> returning "NO ACTION" instead?

Uh, it took a lot of discussion to agree on ROLLBACK.  It would take
even more discussion to add a new tag return value.

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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Pierre-Frédéric Caillaud
Дата:
Сообщение: Re: [GENERAL] copy - fields enclosed by, ignore x lines
Следующее
От: Reini Urban
Дата:
Сообщение: Re: src/timezone/pgtz __imp__my_exec_path