Fix the issue with using std::sort incorrectly

This commit is contained in:
obdev
2024-07-16 14:49:39 +00:00
committed by ob-robot
parent 1057b9aa65
commit 8d9b041d67

View File

@ -1276,7 +1276,7 @@ int ObKeyPart::formalize_keypart(bool contain_row)
lib::ob_sort(in_keypart_->in_params_.begin(),
in_keypart_->in_params_.end(),
[] (const InParamMeta *e1, const InParamMeta *e2) {
return e1->pos_.offset_ <= e2->pos_.offset_;
return e1->pos_.offset_ < e2->pos_.offset_;
});
int64_t off = -1;
in_keypart_->is_strict_in_ = true;