Skip to content

Commit 102b9ba

Browse files
Fix test
1 parent e964f9f commit 102b9ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/src/org/labkey/api/data/dialect/BasePostgreSqlDialect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ else if (selfContained)
10611061
boolean alreadyHeld = scope.isThreadConnectionActive();
10621062
Connection conn = scope.getConnection();
10631063

1064-
if (!alreadyHeld && conn instanceof ConnectionWrapper cw)
1064+
if (!alreadyHeld && conn instanceof ConnectionWrapper cw && cw.getAutoCommit())
10651065
cw.setRunOnClose(configureToDisableJdbcCaching(cw, scope));
10661066

10671067
return conn;

0 commit comments

Comments
 (0)