diff --git a/src/main/java/com/zaxxer/hikari/pool/PoolBase.java b/src/main/java/com/zaxxer/hikari/pool/PoolBase.java index 9e7f766e1..b9d253035 100644 --- a/src/main/java/com/zaxxer/hikari/pool/PoolBase.java +++ b/src/main/java/com/zaxxer/hikari/pool/PoolBase.java @@ -220,6 +220,7 @@ void resetConnectionState(final Connection connection, final ProxyConnection pro } if ((dirtyBits & DIRTY_BIT_ISOLATION) != 0 && proxyConnection.getTransactionIsolationState() != transactionIsolation) { + //noinspection MagicConstant connection.setTransactionIsolation(transactionIsolation); resetBits |= DIRTY_BIT_ISOLATION; } @@ -428,6 +429,7 @@ private void setupConnection(final Connection connection) throws ConnectionSetup checkDriverSupport(connection); if (transactionIsolation != defaultTransactionIsolation) { + //noinspection MagicConstant connection.setTransactionIsolation(transactionIsolation); }