[CP] [CP] fix ps with timestamp parameter bug

This commit is contained in:
obdev
2022-06-30 16:15:36 +08:00
committed by wangzelin.wzl
parent dffd24c77f
commit 29ee400113
5 changed files with 21 additions and 8 deletions

View File

@ -1156,7 +1156,7 @@ int ObStaticEngineCG::fill_sort_funcs(
if (OB_FAIL(sort_funcs.init(collations.count()))) {
LOG_WARN("failed to init sort functions", K(ret));
} else {
for (int64_t i = 0; i < collations.count(); ++i) {
for (int64_t i = 0; i < collations.count() && OB_SUCC(ret); ++i) {
const ObSortFieldCollation& sort_collation = collations.at(i);
ObExpr* expr = nullptr;
if (OB_FAIL(sort_exprs.at(sort_collation.field_idx_, expr))) {