Warning on transaction commit - Mailing list pgsql-jdbc

From Jeremy Buchmann
Subject Warning on transaction commit
Date
Msg-id 3383060E-272E-11D7-BA14-000502E740BA@wellsgaming.com
Whole thread Raw
Responses Bug: Re: Warning on transaction commit
List pgsql-jdbc
Hi all,

I'm getting a warning message in my logs that looks like this:

WARNING:  COMMIT: no transaction in progress

when I run this code:

dbh.setAutoCommit(false);
Statement doEvents = dbh.createStatement();
doEvents.executeUpdate("DELETE FROM ...");
doEvents.executeUpdate("INSERT INTO ...");
dbh.commit();
dbh.setAutoCommit(true);

The statements do what they're supposed to do, but I don't understand
why I'm getting that warning message.  Anyone know why?

I'm running PostgreSQL 7.3.1 and using the PostgreSQL 7.3 JDBC 2 driver
that I just downloaded a couple days ago from jdbc.postgresql.org.

Thanks,
--Jeremy


pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: JDBC MetaData getImportedKeys query
Next
From: Carlos Correia
Date:
Subject: Errors compiling Postgres (bison -maximum table size excceeded)