allow add/drop check-constraint for table with mlog

This commit is contained in:
leftgeek
2024-02-20 06:46:37 +00:00
committed by ob-robot
parent 3239b28293
commit 625ea22c07

View File

@ -8576,6 +8576,11 @@ int ObResolverUtils::check_allowed_alter_operations_for_mlog(
|| arg.alter_table_schema_.alter_option_bitset_.has_member(ObAlterTableArg::TTL_DEFINITION) || arg.alter_table_schema_.alter_option_bitset_.has_member(ObAlterTableArg::TTL_DEFINITION)
|| arg.alter_table_schema_.alter_option_bitset_.has_member(ObAlterTableArg::KV_ATTRIBUTES)))) { || arg.alter_table_schema_.alter_option_bitset_.has_member(ObAlterTableArg::KV_ATTRIBUTES)))) {
// supported operations // supported operations
} else if (!arg.is_alter_columns_
&& ((ObAlterTableArg::ADD_CONSTRAINT == arg.alter_constraint_type_)
|| (ObAlterTableArg::DROP_CONSTRAINT == arg.alter_constraint_type_)
|| (ObAlterTableArg::ALTER_CONSTRAINT_STATE == arg.alter_constraint_type_))) {
// add/drop constraint is supported
} else { } else {
// unsupported operations // unsupported operations
ret = OB_NOT_SUPPORTED; ret = OB_NOT_SUPPORTED;