From 4b0f8540138de2a3696bfbfd2743d07411bbcbef Mon Sep 17 00:00:00 2001 From: Terry Chow Date: Mon, 8 Jan 2024 11:00:23 -0800 Subject: [PATCH] Updated test testAddbatch2AEOnConnection --- .../jdbc/preparedStatement/BatchExecutionWithNullTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/microsoft/sqlserver/jdbc/preparedStatement/BatchExecutionWithNullTest.java b/src/test/java/com/microsoft/sqlserver/jdbc/preparedStatement/BatchExecutionWithNullTest.java index 672708de3..d4f9413f4 100644 --- a/src/test/java/com/microsoft/sqlserver/jdbc/preparedStatement/BatchExecutionWithNullTest.java +++ b/src/test/java/com/microsoft/sqlserver/jdbc/preparedStatement/BatchExecutionWithNullTest.java @@ -98,7 +98,9 @@ public void testAddBatch2(Connection conn) throws SQLException { @Tag(Constants.xSQLv11) @Tag(Constants.xSQLv12) public void testAddbatch2AEOnConnection() throws SQLException { - try (Connection connection = PrepUtil.getConnection(connectionString + ";columnEncryptionSetting=Enabled;")) { + String cs = TestUtils.addOrOverrideProperty(connectionString, "columnEncryptionSetting", "Enabled"); + cs = TestUtils.addOrOverrideProperty(cs, "sendStringParametersAsUnicode", "false"); + try (Connection connection = PrepUtil.getConnection(cs)) { testAddBatch2(connection); } }