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

From Oliver Jowett
Subject Re: "postgresql-9.0-801.jdbc4.jar" Causing "Error committing transaction. Cause: org.postgresql.util.PSQLException: Cannot commit when autoCommit is enabled." Exception
Date
Msg-id BANLkTinersxeyk+Qq3ixSQ-F5N8swKby1w@mail.gmail.com
Whole thread Raw
In response to 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>)
List 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 by date:

Previous
From: Craig Ringer
Date:
Subject: Re: "postgresql-9.0-801.jdbc4.jar" Causing "Error committing transaction. Cause: org.postgresql.util.PSQLException: Cannot commit when autoCommit is enabled." Exception
Next
From: Maciek Sakrejda
Date:
Subject: COPY: leaked lock on connection drop