Skip to content

Commit

Permalink
Merge pull request #948 from virtualcell/947-fix-autocommit
Browse files Browse the repository at this point in the history
autocommit now defaults to true for oracle driver, vcell needs false
  • Loading branch information
jcschaff authored Aug 20, 2023
2 parents f91ac77 + 9ef7015 commit af8dab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public synchronized Connection getConnection(Object lock) throws SQLException {
"3. there is a problem with network.\n" +
"details: "+detailedErrorMsg, exception);
}
conn.setAutoCommit(false);
return conn;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public synchronized Connection getConnection(Object lock) throws SQLException {
Connection conn = null;
try {
conn = poolDataSource.getConnection();
conn.setAutoCommit(false);
} catch (SQLException ex) {
// might be invalid or stale connection
if (lg.isTraceEnabled()) lg.trace("first time #getConnection( ) fail " + ex.getMessage() + ", state " + ex.getSQLState() + ", attempting refresh");
Expand All @@ -76,6 +75,7 @@ public synchronized Connection getConnection(Object lock) throws SQLException {
"2. there is a problem with database server.\n" +
"3. there is a problem with network.\n");
}
conn.setAutoCommit(false);
return conn;
}

Expand Down

0 comments on commit af8dab0

Please sign in to comment.