fix infix expression exprs count limit bug

This commit is contained in:
st0
2022-03-03 10:23:20 +08:00
committed by LINxiansheng
parent 104dab5c02
commit 95c16e09bd

View File

@ -160,8 +160,10 @@ int ObInfixExpression::set_item_count(const int64_t count)
if (count < 0 || count >= std::numeric_limits<uint16_t>::max()) {
ret = OB_INVALID_ARGUMENT;
LOG_WARN("invalid item count", K(ret), K(count));
} else if (OB_FAIL(exprs_.init(count, alloc_))) {
LOG_WARN("exprs init failed", K(ret));
}
return exprs_.init(count, alloc_);
return ret;
}
int ObInfixExpression::assign(const ObInfixExpression& other)