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

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
Cc: emilu(at)encs(dot)concordia(dot)ca, pgsql-jdbc(at)postgresql(dot)org
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: 2011-06-01 00:53:27
Message-ID: BANLkTinersxeyk+Qq3ixSQ-F5N8swKby1w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On 1 June 2011 12:18, Craig Ringer <craig(at)postnewspapers(dot)com(dot)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

In response to

Browse pgsql-jdbc by date

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