Re: Postgresql prepared transactions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Postgresql prepared transactions
Дата
Msg-id 28419.1298072880@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Postgresql prepared transactions  (Radosław Smogura <rsmogura@softperience.eu>)
Ответы Re: Postgresql prepared transactions  (Radosław Smogura <rsmogura@softperience.eu>)
Список pgsql-general
=?utf-8?q?Rados=C5=82aw_Smogura?= <rsmogura@softperience.eu> writes:
> I do following commands

> test=# BEGIN;
> BEGIN
> test=# insert into testxa1 values(1);
> INSERT 0 1
> test=# insert ddddduuuuuppppp;
> ERROR:  syntax error at or near "ddddduuuuuppppp"
> LINE 1: insert ddddduuuuuppppp;
>                ^
> test=# PREPARE TRANSACTION 'a';
> ROLLBACK

> Why on prepare transaction I got rollback.

Because the transaction had already failed due to the error.  This is
the same as if you'd done a plain COMMIT at that point.

            regards, tom lane

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

Предыдущее
От: Radosław Smogura
Дата:
Сообщение: Postgresql prepared transactions
Следующее
От: Rich Shepard
Дата:
Сообщение: Re: Explicit NULL for no INTEGER data? -- Update