Re: JDBC: "transaction aborted"

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: JDBC: "transaction aborted"
Дата
Msg-id 4C7E0E41.3080302@opencloud.com
обсуждение исходный текст
Ответ на Re: JDBC: "transaction aborted"  (Fabien JALABERT <fabien.jalabert@laposte.net>)
Список pgsql-jdbc
Fabien JALABERT wrote:
> Hello, if I turn on autocommit, will I be able to process transactions
> with begin/commit/rollback as before ?

"Maybe" - but you shouldn't be doing that anyway. The JDBC model expects
that to do explicit transaction demarcation, you turn off autocommit and
use methods on Connection to do commit/rollback. You shouldn't be
issuing queries with explicit BEGIN/COMMIT/ROLLBACK.

see e.g.
http://download.oracle.com/javase/1.3/docs/guide/jdbc/getstart/connection.html#1004665

-O

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

Предыдущее
От: Fabien JALABERT
Дата:
Сообщение: Re: JDBC: "transaction aborted"
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: JDBC: "transaction aborted"