Re: SET AUTOCOMMIT TO OFF

From: Marcos Truchado <mtruchado(at)telefonica(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: SET AUTOCOMMIT TO OFF
Date: 2004-01-04 15:54:57
Message-ID: 3FF83751.5060605@telefonica.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Kris Jurka wrote:

>On Sun, 4 Jan 2004, Joseph Shraibman wrote:
>
>
>
>>After upgrading to 7.4.1, I keep getting this error:
>>
>>ERROR: SET AUTOCOMMIT TO OFF is no longer supported
>>
>>isn't this supposed to be fixed in the 7.4.1 driver?
>>
>>
>
>Yes. Are you sure you have a 7.4 series driver?
>
>Kris Jurka
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
>
>

Works ok here.

Postgresql: 7.4.0
driver: pg74jdbc3.jar build 210

Connection conn = null;
try {
conn = getConnection();

boolean autoCommit = conn.getAutoCommit();
conn.setAutoCommit(false);

... do stuff with database

conn.commit();
conn.setAutoCommit(autoCommit);
} catch(SQLException e) {
conn.rollback();
e.printStackTrace();
}

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Andrew Dunstan 2004-01-04 17:28:57 Re: PL/Java issues
Previous Message Kris Jurka 2004-01-04 15:30:16 Re: SET AUTOCOMMIT TO OFF