JDBC connection.setAutoCommit(false) commits after each update????
414599Feb 10 2004 — edited May 22 2005The problem is on AUTO COMMIT of JDBC connection.
What I did was:
....
conn.setAutoCommit(false);
conn.executeUpdate( mySQLStatement );
....
conn.rollback();
....
The expected result to the database table
should be: NOTHING UPDATED.
But what actually happened was: the updates
went into the database.
So the setAutoCommit(false) didn't work
as expected.
BTW, I am using Oracle 8.1.7 and the Oracle
thin JDBC driver.
Any help or hint will be appreciated.
Thanks.
Chenglin