Re: Connection.setReadOnly()

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Connection.setReadOnly()
Дата
Msg-id 4B21965C.2000306@opencloud.com
обсуждение исходный текст
Ответ на Re: Connection.setReadOnly()  (John R Pierce <pierce@hogranch.com>)
Список pgsql-jdbc
John R Pierce wrote:
> Kris Jurka wrote:
>> So if they go to the trouble of doing a setReadOnly call, why not
>> simply do a setAutoCommit(true) call as well?
>
> thats pretty much what they'll have to do.   I guess setReadOnly() is
> pretty much a non-op in pg-jdbc?

It issues a "SET SESSION CHARACTERISTICS AS TRANSACTION READ ONLY"
command. See

http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/jdbc/pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Connection.java?rev=1.54&content-type=text/x-cvsweb-markup

-O

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Connection.setReadOnly()
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Connection.setReadOnly()