Re: [BUGS] rollback to savepoint leads to transaction already in progress

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема Re: [BUGS] rollback to savepoint leads to transaction already in progress
Дата
Msg-id AANLkTi=57XG-UX3ve3XOi_Mi62nQ3P+s_bbrQmwO1oMd@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [BUGS] rollback to savepoint leads to transaction already in progress  (David Newall <postgresql@davidnewall.com>)
Список pgsql-hackers
On Thu, Oct 14, 2010 at 3:52 PM, David Newall
<postgresql@davidnewall.com> wrote:
> This does seem to be an new bug in previously working code.  While any
> solution that fixes the problem is good, it might pay to look the code that
> worked before.  As reported, it worked for ecpg (PostgreSQL 8.3.8) 4.4.1.

It works on 8.3, but it's still broken. Here is the code in 8.3.
It ignores "ROLLBACK TO savepoint", but also ignores "ROLLBACK TRANSACTION".

----
if (strcmp(transaction, "commit") == 0 || strcmp(transaction, "rollback") == 0)  con->committed = true;
else  con->committed = false;
----

--
Itagaki Takahiro


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Still more tweaking of git_changelog.
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Why do we have a database specification in .pgpass?