Re: JDBC: "transaction aborted"

Поиск
Список
Период
Сортировка
Искать
От
Oliver Jowett
Тема
Re: JDBC: "transaction aborted"
Дата
Msg-id
4C7E0E41.3080302@opencloud.com
Ответ на
Список
Дерево обсуждения
JDBC: "transaction aborted" Pif <fjspam@laposte.net>
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
Дата:
От: Craig Ringer
Дата:
FAQ