[CP] generate delete+insert plan when update primary key in a pdml plan
This commit is contained in:
@ -41,6 +41,7 @@ int IndexDMLInfo::deep_copy(ObIRawExprCopier &expr_copier, const IndexDMLInfo &o
|
||||
is_primary_index_ = other.is_primary_index_;
|
||||
is_update_unique_key_ = other.is_update_unique_key_;
|
||||
is_update_part_key_ = other.is_update_part_key_;
|
||||
is_update_primary_key_ = other.is_update_primary_key_;
|
||||
assignments_.reset();
|
||||
if (OB_FAIL(expr_copier.copy(other.column_exprs_, column_exprs_))) {
|
||||
LOG_WARN("failed to assign column exprs", K(ret));
|
||||
@ -83,6 +84,7 @@ int IndexDMLInfo::assign_basic(const IndexDMLInfo &other)
|
||||
is_primary_index_ = other.is_primary_index_;
|
||||
is_update_unique_key_ = other.is_update_unique_key_;
|
||||
is_update_part_key_ = other.is_update_part_key_;
|
||||
is_update_primary_key_ = other.is_update_primary_key_;
|
||||
trans_info_expr_ = other.trans_info_expr_;
|
||||
if (OB_FAIL(column_exprs_.assign(other.column_exprs_))) {
|
||||
LOG_WARN("failed to assign column exprs", K(ret));
|
||||
|
||||
Reference in New Issue
Block a user