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

@ -3045,9 +3045,9 @@ int ObRelationalExprOperator::pl_udt_compare2(CollectionPredRes &cmp_result,
};
udtComparer uc(cmp_ctx, lt_cmp_fp);
const ObObj **first = &c1_copy.at(0);
std::sort(first, first + c1_copy.count(), uc);
lib::ob_sort(first, first + c1_copy.count(), uc);
first = &c2_copy.at(0);
std::sort(first, first + c2_copy.count(), uc);
lib::ob_sort(first, first + c2_copy.count(), uc);
int cmp_res = 1;
// 可能是等值或者不等值
common::obj_cmp_func eq_cmp_fp;