Skip to content

Commit 4b0f854

Browse files
committed
Updated test testAddbatch2AEOnConnection
1 parent 3af81f3 commit 4b0f854

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/com/microsoft/sqlserver/jdbc/preparedStatement/BatchExecutionWithNullTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ public void testAddBatch2(Connection conn) throws SQLException {
9898
@Tag(Constants.xSQLv11)
9999
@Tag(Constants.xSQLv12)
100100
public void testAddbatch2AEOnConnection() throws SQLException {
101-
try (Connection connection = PrepUtil.getConnection(connectionString + ";columnEncryptionSetting=Enabled;")) {
101+
String cs = TestUtils.addOrOverrideProperty(connectionString, "columnEncryptionSetting", "Enabled");
102+
cs = TestUtils.addOrOverrideProperty(cs, "sendStringParametersAsUnicode", "false");
103+
try (Connection connection = PrepUtil.getConnection(cs)) {
102104
testAddBatch2(connection);
103105
}
104106
}

0 commit comments

Comments
 (0)