Skip to content

Commit

Permalink
In SQLServerConnectionTest, specifying columnEncryption=enabled cause…
Browse files Browse the repository at this point in the history
…s problems, test will still correctly assess the error code path in ParameterMetaDataCache
  • Loading branch information
Jeffery-Wasty committed Jun 21, 2022
1 parent b2d09e1 commit 345ef9f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -985,8 +985,7 @@ public void testBadServerCert() throws SQLException {
*/
@Test
public void testParameterMetadataAccessDenial() throws SQLException {
try (Connection conn = PrepUtil.getConnection(connectionString + ";columnEncryptionSetting=Enabled");
SQLServerStatement stmt = (SQLServerStatement) conn.createStatement()) {
try (SQLServerStatement stmt = (SQLServerStatement) connection.createStatement()) {
CryptoCache cache = new CryptoCache();
Map<Integer, CekTableEntry> cekList = new HashMap<>();
Parameter[] params = {new Parameter(false)};
Expand Down

0 comments on commit 345ef9f

Please sign in to comment.