提交 9cd64719 编写于 作者: S Serge Rider

Column type change fix (NPE)


Former-commit-id: a61c3840
上级 3b7d8286
......@@ -124,16 +124,16 @@ public abstract class JDBCTableColumn<TABLE_TYPE extends DBSEntity> extends JDBC
DBSDataType dataType = ((DBPDataTypeProvider) dataSource).getLocalDataType(typeName);
if (dataType != null) {
this.valueType = dataType.getTypeID();
if (this instanceof DBSTypedObjectExt4) {
try {
((DBSTypedObjectExt4) this).setDataType(dataType);
} catch (Throwable e) {
log.debug(e);
}
}
} else {
this.valueType = -1;
}
if (this instanceof DBSTypedObjectExt4) {
try {
((DBSTypedObjectExt4) this).setDataType(dataType);
} catch (Throwable e) {
log.debug(e);
}
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册