* @param className Expected detected class name
* @return Column Information
* @throws SQLException
*/
private ColumnInfo testColumnTypeDetection(String var, Node value, boolean allowNulls, int jdbcType, String className) throws SQLException {
ColumnInfo info = JdbcCompatibility.detectColumnType(var, value, allowNulls);
Assert.assertEquals(var, info.getLabel());
if (allowNulls) {
Assert.assertEquals(ResultSetMetaData.columnNullable, info.getNullability());
} else {
Assert.assertEquals(ResultSetMetaData.columnNoNulls, info.getNullability());
}
Assert.assertEquals(jdbcType, info.getType());
Assert.assertEquals(className, info.getClassName());
Assert.assertEquals(Node.class.getCanonicalName(), info.getTypeName());
return info;
}