posted 19 years ago
Hello
I am using type 4 driver name ConnectorJ with file mysql-connector-java-3.1.0-alpha-bin.jar.
My code is
/********************************************/
Class.forName("com.mysql.jdbc.Driver");
con = DriverManager.getConnection("jdbc:mysql://localhost/hrms?user=root");
con.setAutoCommit(false);
System.out.println("commit = "+con.getAutoCommit());
/**********************************************/
After this I have 7 PreparedStatement and then a condition for commit or rollback but rollback doesn't work.
If any other driver works fine at your end please tell me the name of driver .
Thankyou