Re: "postgresql-9.0-801.jdbc4.jar" Causing "Error committing transaction. Cause: org.postgresql.util.PSQLException: Cannot commit when autoCommit is enabled." Exception

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: "postgresql-9.0-801.jdbc4.jar" Causing "Error committing transaction. Cause: org.postgresql.util.PSQLException: Cannot commit when autoCommit is enabled." Exception
Дата
Msg-id BANLkTinersxeyk+Qq3ixSQ-F5N8swKby1w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: "postgresql-9.0-801.jdbc4.jar" Causing "Error committing transaction. Cause: org.postgresql.util.PSQLException: Cannot commit when autoCommit is enabled." Exception  (Craig Ringer <craig@postnewspapers.com.au>)
Список pgsql-jdbc
On 1 June 2011 12:18, Craig Ringer <craig@postnewspapers.com.au> wrote:

> "autoCommit" doesn't appear to be documented in
> http://jdbc.postgresql.org/documentation/head/connect.html#connection-parameters
> , which is surprising.

It's a datasource parameter, not a connection parameter.

Possibly mybatis is trying to handle the old datasource default that
had autocommit=false for connections obtained from a datasource.
That default was changed quite a long time ago.

Oliver

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: "postgresql-9.0-801.jdbc4.jar" Causing "Error committing transaction. Cause: org.postgresql.util.PSQLException: Cannot commit when autoCommit is enabled." Exception
Следующее
От: Maciek Sakrejda
Дата:
Сообщение: COPY: leaked lock on connection drop