提交 f3e6375e 编写于 作者: L LYAccc 提交者: ob-robot

fix foreign key column schema is null

上级 72e80c8b
...@@ -7974,7 +7974,7 @@ int ObResolverUtils::check_foreign_key_set_null_satisfy( ...@@ -7974,7 +7974,7 @@ int ObResolverUtils::check_foreign_key_set_null_satisfy(
const ObString &fk_col_name = arg.child_columns_.at(i); const ObString &fk_col_name = arg.child_columns_.at(i);
const ObColumnSchemaV2 *fk_col_schema = child_table_schema.get_column_schema(fk_col_name); const ObColumnSchemaV2 *fk_col_schema = child_table_schema.get_column_schema(fk_col_name);
if (OB_ISNULL(fk_col_schema)) { if (OB_ISNULL(fk_col_schema)) {
ret = OB_ERR_UNEXPECTED; ret = OB_ERR_COLUMN_NOT_FOUND;
LOG_WARN("foreign key column schema is null", K(ret), K(i)); LOG_WARN("foreign key column schema is null", K(ret), K(i));
} else if (fk_col_schema->is_generated_column()) { } else if (fk_col_schema->is_generated_column()) {
ret = OB_ERR_UNSUPPORTED_FK_SET_NULL_ON_GENERATED_COLUMN; ret = OB_ERR_UNSUPPORTED_FK_SET_NULL_ON_GENERATED_COLUMN;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册