File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
ebean-datasource/src/main/java/io/ebean/datasource/pool Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -439,7 +439,6 @@ private Connection initConnection(Connection conn) throws SQLException {
439439 if (connectionInitializer != null ) {
440440 connectionInitializer .preInitialize (conn );
441441 }
442- conn .setAutoCommit (autoCommit );
443442 // isolation level is set globally for all connections (at least for H2) and
444443 // you will need admin rights - so we do not change it, if it already matches.
445444 if (conn .getTransactionIsolation () != transactionIsolation ) {
@@ -475,6 +474,7 @@ private Connection initConnection(Connection conn) throws SQLException {
475474 }
476475 }
477476 }
477+ conn .setAutoCommit (autoCommit );
478478 if (connectionInitializer != null ) {
479479 connectionInitializer .postInitialize (conn );
480480 }
You can’t perform that action at this time.
0 commit comments