use of com.microsoft.sqlserver.jdbc.SQLServerResultSet42 in project mssql-jdbc by Microsoft.
the class ResultSetWrapper42Test method SQLServerResultSet42Test.
/**
* Tests creation of SQLServerResultSet42 object
*
* @throws SQLException
*/
@Test
public void SQLServerResultSet42Test() throws SQLException {
String sql = "SELECT SUSER_SNAME()";
ResultSet rs = null;
try {
rs = connection.createStatement().executeQuery(sql);
if (1.8d <= javaVersion && 4 == major && 2 == minor) {
assertTrue(rs instanceof SQLServerResultSet42);
} else {
assertTrue(rs instanceof SQLServerResultSet);
}
} finally {
if (null != rs) {
rs.close();
}
}
}
Aggregations