protected String getRuntimeType(int type, String typeName, int precision) { if (importRowIdAsBinary && type == Types.ROWID) { return TypeFacility.RUNTIME_NAMES.VARBINARY; } if (type == Types.BIT && precision > 1) { type = Types.BINARY; } type = checkForUnsigned(type, typeName); String result = TypeFacility.getDataTypeNameFromSQLType(type); if (importLargeAsLob) { if (result.equals(TypeFacility.RUNTIME_NAMES.STRING) && precision > DataTypeManager.MAX_STRING_LENGTH) { result = TypeFacility.RUNTIME_NAMES.CLOB; } else if (result.equals(TypeFacility.RUNTIME_NAMES.VARBINARY) && precision > DataTypeManager.MAX_VARBINARY_BYTES) { result = TypeFacility.RUNTIME_NAMES.BLOB; } } return result; }
@Test public void testArrayType() { assertEquals(TypeFacility.RUNTIME_NAMES.OBJECT, TypeFacility.getDataTypeNameFromSQLType(Types.ARRAY)); }