fix(query): set the correct flag to denote the initialization status.

This commit is contained in:
Haojun Liao 2022-04-18 11:01:07 +08:00
parent 7429f37c0c
commit e91233f5eb
1 changed files with 6 additions and 2 deletions

View File

@ -2914,8 +2914,12 @@ void setResultRowOutputBufInitCtx_rv(SResultRow* pResult, SqlFunctionCtx* pCtx,
continue;
}
if (!pResInfo->initialized && pCtx[i].functionId != -1) {
pCtx[i].fpSet.init(&pCtx[i], pResInfo);
if (!pResInfo->initialized) {
if (pCtx[i].functionId != -1) {
pCtx[i].fpSet.init(&pCtx[i], pResInfo);
} else {
pResInfo->initialized = true;
}
}
}
}