Re: problem with transactions

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: problem with transactions
Дата
Msg-id Pine.BSO.4.56.0405100856070.3692@leary.csoft.net
обсуждение исходный текст
Ответ на problem with transactions  (pginfo <pginfo@t1.unisoftbg.com>)
Список pgsql-jdbc

On Mon, 10 May 2004, pginfo wrote:

> Hi,
>
> We are using pg 7.4.2 + jdbc to connect to jboss.
>
> Connection con = ... I get connection to my db.
> con.setAutoCommit(false);    // begin transaction
> // do some inserts
> con.rollback(); // rollback
> con.setAutoCommit(true);    // set autocommit. We are using connection
> pool and will to have clear connection.
>
> For my supprice the last example do not rollback any inserts !

I find that very hard to believe.  The attached file shows the expected
behavior for me.  If it fails for you or you can modify it to fail, I
would be very interested.

Kris Jurka

Вложения

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

Предыдущее
От: pginfo
Дата:
Сообщение: problem with transactions
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: problem with transactions