use of org.apache.jena.jdbc.results.metadata.columns.ColumnInfo in project jena by apache.
the class TestCompatibility method test_column_type_detection_integer_04.
/**
* Expect xsd:unsignedInteger to be typed as integers
* @throws SQLException
*/
@Test
public void test_column_type_detection_integer_04() throws SQLException {
ColumnInfo info = testColumnTypeDetection("x", NodeFactory.createLiteral("1234", XSDDatatype.XSDunsignedInt), true, Types.BIGINT, Long.class.getCanonicalName());
Assert.assertEquals(0, info.getScale());
Assert.assertFalse(info.isSigned());
}
use of org.apache.jena.jdbc.results.metadata.columns.ColumnInfo in project jena by apache.
the class TestCompatibility method test_column_type_detection_integer_05.
/**
* Expect xsd:unsignedLong to be typed as integers
* @throws SQLException
*/
@Test
public void test_column_type_detection_integer_05() throws SQLException {
ColumnInfo info = testColumnTypeDetection("x", NodeFactory.createLiteral("1234", XSDDatatype.XSDunsignedLong), true, Types.BIGINT, Long.class.getCanonicalName());
Assert.assertEquals(0, info.getScale());
Assert.assertFalse(info.isSigned());
}
Aggregations