support comment-on-table command for table with mlog

This commit is contained in:
leftgeek
2024-02-28 08:44:51 +00:00
committed by ob-robot
parent 18fd23a2a8
commit fc23aae5aa

View File

@ -8598,7 +8598,9 @@ int ObResolverUtils::check_allowed_alter_operations_for_mlog(
|| arg.alter_table_schema_.alter_option_bitset_.has_member(ObAlterTableArg::ENCRYPTION)
|| arg.alter_table_schema_.alter_option_bitset_.has_member(ObAlterTableArg::TABLESPACE_ID)
|| 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)))
|| (lib::is_oracle_mode() // for "comment on table" command in oracle mode
&& arg.alter_table_schema_.alter_option_bitset_.has_member(ObAlterTableArg::COMMENT))) {
// supported operations
} else if (!arg.is_alter_columns_
&& ((ObAlterTableArg::ADD_CONSTRAINT == arg.alter_constraint_type_)