JDBC transactions

Поиск
Список
Период
Сортировка
Искать
От
Herouth Maoz
Тема
JDBC transactions
Дата
Msg-id
l03110703b0d93b50fe62@[147.233.159.109]
Список
Дерево обсуждения
Re: JDBC transactions Herouth Maoz <herouth@oumail.openu.ac.il>
Re: [INTERFACES] Re: JDBC transactions Peter T Mount <pgint@maidast.demon.co.uk>
I wanted to make sure before I attempt it:

If I'm using the JDBC driver, I don't have to use explicit transaction
calls. That is, I don't have to sent the statements "BEGIN TRANSACTION" and
"END".

Instead, I have to do con.setAutoCommit(false), and then, the next SQL call
will initiate a transaction, which I end by using con.commit() or
con.rollback().

That's the documented behavior of JDBC, and what I'm asking is whether (a)
I'm correct in my interpretation, and (b) whether the current JDBC driver
provided with PostgreSQL 6.2.1 in fact behaves like this.

Herouth


В списке pgsql-interfaces по дате отправления
От: The Hermit Hacker
Дата:
Сообщение: New Mailing List/Newsgroup
От: Constantin Teodorescu
Дата:
FAQ