Closed
Description
SQLException is thrown when :
Class.forName(JDBC_DRIVER);
con = DriverManager.getConnection(DB_URL, USER, PASS);
con.setAutoCommit(false);
con.setAutoCommit(true); // <--- Exception here
java.sql.SQLException: Connection is in auto-commit mode
at com.facebook.presto.jdbc.PrestoConnection.commit(PrestoConnection.java:173)
at com.facebook.presto.jdbc.PrestoConnection.setAutoCommit(PrestoConnection.java:155)
at presto_jdbc.main(presto_jdbc.java:34)
These sequence of operations are common in BI Tools. Expectation is that the second setAutoCommit(true)
will commit any changes and then continue without exception.
Metadata
Metadata
Assignees
Labels
No labels