[CP] [bugfix] Assigning ObRawExprPointer eats error code

This commit is contained in:
obdev
2022-12-05 14:05:52 +00:00
committed by ob-robot
parent 89fc0484ef
commit e2c4bb64fa
2 changed files with 6 additions and 0 deletions

View File

@ -5403,6 +5403,11 @@ int ObRawExprPointer::add_ref(ObRawExpr **expr)
return expr_group_.push_back(expr);
}
int ObRawExprPointer::assign(const ObRawExprPointer &other)
{
return expr_group_.assign(other.expr_group_);
}
int ObMultiSetRawExpr::assign(const ObRawExpr &other)
{
int ret = OB_SUCCESS;

View File

@ -4426,6 +4426,7 @@ public:
int get(ObRawExpr *&expr);
int set(ObRawExpr *expr);
int add_ref(ObRawExpr **expr);
int assign(const ObRawExprPointer &other);
TO_STRING_KV("", "");
private:
common::ObSEArray<ObRawExpr **, 1> expr_group_;