fix bug arraybinding with number type, can't support batc optimization

This commit is contained in:
yishenglanlingzui
2024-08-19 15:15:31 +00:00
committed by ob-robot
parent 00933cc4f4
commit 863a8a27ea
2 changed files with 7 additions and 4 deletions

View File

@ -5265,6 +5265,7 @@ int ObSQLUtils::get_one_group_params(int64_t &actual_pos, ParamStore &src, Param
ObObj *data = NULL;
if (OB_UNLIKELY(!obj.is_ext())) {
OZ (obj_params.push_back(obj));
OZ (ObSql::add_param_to_param_store(obj, obj_params));
} else {
CK (OB_NOT_NULL(coll = reinterpret_cast<pl::ObPLCollection*>(obj.get_ext())));
CK (coll->get_count() > actual_pos);
@ -5278,7 +5279,7 @@ int ObSQLUtils::get_one_group_params(int64_t &actual_pos, ParamStore &src, Param
++actual_pos;
}
}
OX (obj_params.push_back(*(data + actual_pos)));
OZ (ObSql::add_param_to_param_store(*(data + actual_pos), obj_params));
}
}
}
@ -5898,4 +5899,4 @@ bool ObSQLUtils::is_data_version_ge_423_or_431(uint64_t data_version)
bool ObSQLUtils::is_data_version_ge_423_or_432(uint64_t data_version)
{
return ((MOCK_DATA_VERSION_4_2_3_0 <= data_version && data_version < DATA_VERSION_4_3_0_0) || data_version >= DATA_VERSION_4_3_2_0);
}
}