errsim to check the compare method for std::sort

This commit is contained in:
tushicheng
2024-06-24 07:58:04 +00:00
committed by ob-robot
parent 5f52ab8cbb
commit b7f4eb6aa2
166 changed files with 473 additions and 392 deletions

View File

@ -188,9 +188,9 @@ int ObExprCollPred::calc_collection_is_contained_without_null(const pl::ObPLColl
result = COLL_PRED_FALSE;
} else {
const ObObj **first = &c1_copy.at(0);
std::sort(first, first + c1_cnt, uc);
lib::ob_sort(first, first + c1_cnt, uc);
first = &c2_copy.at(0);
std::sort(first, first + c2_cnt, uc);
lib::ob_sort(first, first + c2_cnt, uc);
for (int64_t i = 0; OB_SUCC(ret) && i < c1_copy.count(); ++i) {
if (0 != compare_obj(*(c1_copy.at(i)), *(c2_copy.at(i)), cmp_ctx)) {
result = COLL_PRED_FALSE;