[FEAT MERGE]优化器技改patch到432
Co-authored-by: jingtaoye35 <1255153887@qq.com> Co-authored-by: qingzhu521 <q15000557748@gmail.com> Co-authored-by: akaError <lzg020616@163.com>
This commit is contained in:
19
deps/oblib/src/common/object/ob_object.cpp
vendored
19
deps/oblib/src/common/object/ob_object.cpp
vendored
@ -2364,6 +2364,25 @@ int ObObj::convert_string_value_charset(ObCharsetType charset_type, ObIAllocator
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ObObj::get_real_param_count(int64_t &count) const
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
count = 1;
|
||||
if (ObExtendType == meta_.get_type()) {
|
||||
const ObSqlArrayObj *array_obj = NULL;
|
||||
if (OB_ISNULL(array_obj = reinterpret_cast<const ObSqlArrayObj*>(v_.ext_))) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("unexpected nullptr", K(ret), K(v_.ext_));
|
||||
} else if (array_obj->count_ < 0) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("unexpected group_idx", K(ret), K(array_obj->count_));
|
||||
} else {
|
||||
count = array_obj->count_;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
DEFINE_SERIALIZE(ObObj)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user