use of org.apache.calcite.sql.type.SqlTypeName in project calcite by apache.
the class SqlTypeNameTest method testDouble.
@Test
void testDouble() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.DOUBLE);
assertEquals(DOUBLE, tn, "DOUBLE did not map to DOUBLE");
}
use of org.apache.calcite.sql.type.SqlTypeName in project calcite by apache.
the class SqlTypeNameTest method testVarchar.
@Test
void testVarchar() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.VARCHAR);
assertEquals(VARCHAR, tn, "VARCHAR did not map to VARCHAR");
}
use of org.apache.calcite.sql.type.SqlTypeName in project calcite by apache.
the class SqlTypeNameTest method testClob.
@Test
void testClob() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.CLOB);
assertEquals(null, tn, "CLOB did not map to null");
}
use of org.apache.calcite.sql.type.SqlTypeName in project calcite by apache.
the class SqlTypeNameTest method testJavaobject.
@Test
void testJavaobject() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.JAVA_OBJECT);
assertEquals(null, tn, "JAVA_OBJECT did not map to null");
}
use of org.apache.calcite.sql.type.SqlTypeName in project calcite by apache.
the class SqlTypeNameTest method testLongnvarchar.
@Test
void testLongnvarchar() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(ExtraSqlTypes.LONGNVARCHAR);
// LONGNVARCHAR not supported yet
assertEquals(null, tn, "LONGNVARCHAR maps to non-null type");
}
Aggregations