[HelloBike] fix a bug of index comment covering data table comment
This commit is contained in:
parent
1c610d0815
commit
6c9add4152
@ -1263,7 +1263,7 @@ int ObAlterTableResolver::resolve_add_index(const ParseNode &node)
|
||||
if (OB_SUCCESS == ret) {
|
||||
if (NULL != table_option_node) {
|
||||
has_index_using_type_ = false;
|
||||
if (OB_FAIL(resolve_table_options(table_option_node, false))) {
|
||||
if (OB_FAIL(resolve_table_options(table_option_node, true))) {
|
||||
SQL_RESV_LOG(WARN, "failed to resolve table options!", K(ret));
|
||||
} else if (has_index_using_type_) {
|
||||
create_index_arg->index_using_type_ = index_using_type_;
|
||||
|
@ -1282,7 +1282,7 @@ int ObDDLResolver::resolve_table_option(const ParseNode *option_node, const bool
|
||||
}
|
||||
}
|
||||
}
|
||||
if (OB_SUCCESS == ret && stmt::T_ALTER_TABLE == stmt_->get_stmt_type()) {
|
||||
if (OB_SUCCESS == ret && stmt::T_ALTER_TABLE == stmt_->get_stmt_type() && !is_index_option) {
|
||||
if (OB_FAIL(alter_table_bitset_.add_member(ObAlterTableArg::COMMENT))) {
|
||||
SQL_RESV_LOG(WARN, "failed to add member to bitset!", K(ret));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user