@@ -210,7 +210,7 @@ public void testVerifyBadJksSignature(String serverName, String url, String prot
210
210
String badTable = TestUtils .escapeSingleQuotes (
211
211
AbstractSQLGenerator .escapeIdentifier (RandomUtil .getIdentifier ("testVerifyBadJksSignature" )));
212
212
213
- try (SQLServerConnection c = PrepUtil .getConnection (AETestConnectionString , AEInfo );
213
+ try (SQLServerConnection c = PrepUtil .getConnection (AETestConnectionString + ";sendStringParametersAsUnicode=false;" , AEInfo );
214
214
Statement s = c .createStatement ()) {
215
215
createCMK (AETestConnectionString , badCmk , Constants .JAVA_KEY_STORE_NAME , javaKeyAliases , "0x666" );
216
216
createCEK (AETestConnectionString , badCmk , badCek , jksProvider );
@@ -256,7 +256,7 @@ public void testVerifyBadAkvSignature(String serverName, String url, String prot
256
256
String badTable = TestUtils .escapeSingleQuotes (
257
257
AbstractSQLGenerator .escapeIdentifier (RandomUtil .getIdentifier ("testVerifyBadAkvSignature" )));
258
258
259
- try (SQLServerConnection c = PrepUtil .getConnection (AETestConnectionString , AEInfo );
259
+ try (SQLServerConnection c = PrepUtil .getConnection (AETestConnectionString + ";sendStringParametersAsUnicode=false;" , AEInfo );
260
260
Statement s = c .createStatement ()) {
261
261
createCMK (AETestConnectionString , badCmk , Constants .AZURE_KEY_VAULT_NAME , keyIDs [0 ], "0x666" );
262
262
createCEK (AETestConnectionString , badCmk , badCek , akvProvider );
@@ -301,7 +301,7 @@ public void testVerifyBadWinSignature(String serverName, String url, String prot
301
301
String badTable = TestUtils .escapeSingleQuotes (
302
302
AbstractSQLGenerator .escapeIdentifier (RandomUtil .getIdentifier ("testVerifyBadWinSignature" )));
303
303
304
- try (SQLServerConnection c = PrepUtil .getConnection (AETestConnectionString , AEInfo );
304
+ try (SQLServerConnection c = PrepUtil .getConnection (AETestConnectionString + ";sendStringParametersAsUnicode=false;" , AEInfo );
305
305
Statement s = c .createStatement ()) {
306
306
// create CMK with a bad signature
307
307
createCMK (AETestConnectionString , badCmk , Constants .WINDOWS_KEY_STORE_NAME , windowsKeyPath , "0x666" );
@@ -397,7 +397,7 @@ public void testAEFMTOnly(String serverName, String url, String protocol) throws
397
397
@ MethodSource ("enclaveParams" )
398
398
public void testAlter (String serverName , String url , String protocol ) throws Exception {
399
399
setAEConnectionString (serverName , url , protocol );
400
- try (SQLServerConnection c = PrepUtil .getConnection (AETestConnectionString , AEInfo );
400
+ try (SQLServerConnection c = PrepUtil .getConnection (AETestConnectionString + ";sendStringParametersAsUnicode=false;" , AEInfo );
401
401
Statement s = c .createStatement ()) {
402
402
createTable (CHAR_TABLE_AE , cekJks , varcharTableSimple );
403
403
PreparedStatement pstmt = c .prepareStatement ("INSERT INTO " + CHAR_TABLE_AE + " VALUES (?,?,?)" );
@@ -445,7 +445,7 @@ public void testNumericRichQuery(String serverName, String url, String protocol)
445
445
@ MethodSource ("enclaveParams" )
446
446
public void testStringRichQuery (String serverName , String url , String protocol ) throws Exception {
447
447
setAEConnectionString (serverName , url , protocol );
448
- try (SQLServerConnection c = PrepUtil .getConnection (AETestConnectionString , AEInfo );
448
+ try (SQLServerConnection c = PrepUtil .getConnection (AETestConnectionString + ";sendStringParametersAsUnicode=false;" , AEInfo );
449
449
Statement s = c .createStatement ()) {
450
450
createTable (CHAR_TABLE_AE , cekJks , varcharTableSimple );
451
451
@@ -473,7 +473,7 @@ public void testStringRichQuery(String serverName, String url, String protocol)
473
473
@ MethodSource ("enclaveParams" )
474
474
public void testAlterNoEncrypt (String serverName , String url , String protocol ) throws Exception {
475
475
setAEConnectionString (serverName , url , protocol );
476
- try (SQLServerConnection c = PrepUtil .getConnection (AETestConnectionString , AEInfo );
476
+ try (SQLServerConnection c = PrepUtil .getConnection (AETestConnectionString + ";sendStringParametersAsUnicode=false;" , AEInfo );
477
477
Statement s = c .createStatement ()) {
478
478
createTable (CHAR_TABLE_AE , cekJks , varcharTableSimple );
479
479
PreparedStatement pstmt = c .prepareStatement ("INSERT INTO " + CHAR_TABLE_AE + " VALUES (?,?,?)" );
0 commit comments