use of org.apache.calcite.sql.type.SqlTypeName in project calcite by apache.
the class SqlTypeNameTest method testTinyint.
@Test
void testTinyint() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.TINYINT);
assertEquals(TINYINT, tn, "TINYINT did not map to TINYINT");
}
use of org.apache.calcite.sql.type.SqlTypeName in project calcite by apache.
the class SqlTypeNameTest method testDecimal.
@Test
void testDecimal() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.DECIMAL);
assertEquals(DECIMAL, tn, "DECIMAL did not map to DECIMAL");
}
use of org.apache.calcite.sql.type.SqlTypeName in project calcite by apache.
the class SqlTypeNameTest method testStruct.
@Test
void testStruct() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.STRUCT);
assertEquals(STRUCTURED, tn, "STRUCT did not map to null");
}
use of org.apache.calcite.sql.type.SqlTypeName in project calcite by apache.
the class SqlTypeNameTest method testDatalink.
@Test
void testDatalink() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.DATALINK);
assertEquals(null, tn, "DATALINK did not map to null");
}
use of org.apache.calcite.sql.type.SqlTypeName in project calcite by apache.
the class SqlTypeNameTest method testRowid.
@Test
void testRowid() {
SqlTypeName tn = SqlTypeName.getNameForJdbcType(ExtraSqlTypes.ROWID);
// ROWID not supported yet
assertEquals(null, tn, "ROWID maps to non-null type");
}
Aggregations