use of com.microsoft.sqlserver.jdbc.SQLServerCallableStatement42 in project mssql-jdbc by Microsoft.
the class Wrapper42Test method CallableStatement42Test.
/**
* Tests creation of SQLServerCallableStatement42 object
*
* @throws SQLException
*/
@Test
public void CallableStatement42Test() throws SQLException {
String sql = "SELECT SUSER_SNAME()";
CallableStatement cstmt = connection.prepareCall(sql);
if (1.8d <= javaVersion && 4 == major && 2 == minor) {
assertTrue(cstmt instanceof SQLServerCallableStatement42);
} else {
assertTrue(cstmt instanceof SQLServerCallableStatement);
}
}
Aggregations