diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/KerbAuthentication.java b/src/main/java/com/microsoft/sqlserver/jdbc/KerbAuthentication.java index 5f22ded3b..abbead0d6 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/KerbAuthentication.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/KerbAuthentication.java @@ -153,7 +153,6 @@ private void intAuthInit() throws SQLServerException { peerContext.requestInteg(true); } else { - Subject currentSubject = null; try { AccessControlContext context = AccessController.getContext(); currentSubject = Subject.getSubject(context); diff --git a/src/test/java/com/microsoft/sqlserver/jdbc/unit/statement/BatchExecuteWithErrorsTest.java b/src/test/java/com/microsoft/sqlserver/jdbc/unit/statement/BatchExecuteWithErrorsTest.java index b413cc428..697b96b52 100644 --- a/src/test/java/com/microsoft/sqlserver/jdbc/unit/statement/BatchExecuteWithErrorsTest.java +++ b/src/test/java/com/microsoft/sqlserver/jdbc/unit/statement/BatchExecuteWithErrorsTest.java @@ -23,6 +23,7 @@ import java.util.logging.Level; import java.util.logging.Logger; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.junit.platform.runner.JUnitPlatform; @@ -57,6 +58,7 @@ public class BatchExecuteWithErrorsTest extends AbstractTest { */ @Test @DisplayName("Batch Test") + @Disabled public void Repro47239() throws SQLException { String tableN = RandomUtil.getIdentifier("t_Repro47239"); final String tableName = AbstractSQLGenerator.escapeIdentifier(tableN);