add is_set_comment_ in AlterColumnSchema

This commit is contained in:
dontknow9179 2023-11-08 16:39:24 +00:00 committed by ob-robot
parent ca17f0d04c
commit fcadc1f9b9
2 changed files with 12 additions and 5 deletions

View File

@ -187,6 +187,7 @@ void AlterColumnSchema::reset()
prev_column_name_.reset();
is_first_ = false;
column_group_name_.reset();
is_set_comment_ = false;
}
@ -204,7 +205,8 @@ OB_SERIALIZE_MEMBER((AlterColumnSchema, ObColumnSchemaV2),
next_column_name_,
prev_column_name_,
is_first_,
column_group_name_);
column_group_name_,
is_set_comment_);
DEFINE_SERIALIZE(AlterTableSchema)
{
@ -311,7 +313,9 @@ int64_t AlterColumnSchema::to_string(char* buf, const int64_t buf_len) const
K_(origin_column_name),
K_(next_column_name),
K_(prev_column_name),
K_(is_unique_key));
K_(is_unique_key),
K_(column_group_name),
K_(is_set_comment));
J_COMMA();
J_NAME(N_ALTER_COLUMN_SCHEMA);
J_COLON();
@ -352,6 +356,7 @@ AlterColumnSchema &AlterColumnSchema::operator=(const AlterColumnSchema &src_sch
SHARE_LOG(WARN, "failed to deep copy column_group_name", K(ret));
} else {
is_first_ = src_schema.is_first_;
is_set_comment_ = src_schema.is_set_comment_;
}
}
if (OB_FAIL(ret)) {

View File

@ -485,7 +485,8 @@ public:
next_column_name_(),
prev_column_name_(),
is_first_(false),
column_group_name_()
column_group_name_(),
is_set_comment_(false)
{}
explicit AlterColumnSchema(common::ObIAllocator *allocator)
@ -503,7 +504,8 @@ public:
next_column_name_(),
prev_column_name_(),
is_first_(false),
column_group_name_()
column_group_name_(),
is_set_comment_(false)
{}
AlterColumnSchema &operator=(const AlterColumnSchema &alter_column_schema);
int assign(const ObColumnSchemaV2 &other);
@ -535,7 +537,7 @@ public:
common::ObString prev_column_name_;
bool is_first_;
common::ObString column_group_name_;
bool is_set_comment_;
DECLARE_VIRTUAL_TO_STRING;
};