@@ -123,9 +123,9 @@ enum ColumnType {
123123 {"NumericDefault" , "numeric" , "DECIMAL" }, {"Numeric" , "numeric(8,2)" , "DECIMAL" },
124124 {"SmallMoney" , "smallmoney" , "SMALLMONEY" }, {"Money" , "money" , "MONEY" },
125125 {"Decimal2" , "decimal(28,4)" , "DECIMAL" }, {"Numeric2" , "numeric(28,4)" , "DECIMAL" },};
126-
126+
127127 static String numericTableSimple [][] = {{"Int" , "int" , "INT" }};
128-
128+
129129 static String varcharTableSimple [][] = {{"Varchar" , "varchar(20) COLLATE LATIN1_GENERAL_BIN2" , "VARCHAR" }};
130130
131131 // CREATE TABLE tableName (columns) NULL"
@@ -1959,15 +1959,14 @@ protected void testAlterColumnEncryption(SQLServerStatement stmt, String tableNa
19591959 String sql = "ALTER TABLE " + tableName + " ALTER COLUMN " + ColumnType .DETERMINISTIC .name ()
19601960 + table [i ][0 ] + " " + table [i ][1 ]
19611961 + String .format (encryptSql , ColumnType .RANDOMIZED .name (), cekName ) + ")" ;
1962- try (SQLServerPreparedStatement pstmt = (SQLServerPreparedStatement ) TestUtils .getPreparedStmt (con , sql ,
1963- stmtColEncSetting )) {
1964- pstmt .execute ();
1962+ try {
1963+ stmt .execute (sql );
19651964 if (!TestUtils .isAEv2 (con )) {
19661965 fail (TestResource .getResource ("R_expectedExceptionNotThrown" ));
19671966 }
19681967 } catch (SQLException e ) {
19691968 if (!TestUtils .isAEv2 (con )) {
1970- fail (e .getMessage ());
1969+ fail (e .getMessage ());
19711970 } else {
19721971 fail (TestResource .getResource ("R_AlterAEv2Error" ) + e .getMessage () + "Query: " + sql );
19731972 }
0 commit comments