fix(query): set correct flag in create dummy ctx.
This commit is contained in:
parent
f6ced36c87
commit
c2370fcdcc
|
@ -96,9 +96,9 @@ static void freeEx(void* p) {
|
|||
void cleanupGroupResInfo(SGroupResInfo* pGroupResInfo) {
|
||||
taosMemoryFreeClear(pGroupResInfo->pBuf);
|
||||
if (pGroupResInfo->freeItem) {
|
||||
taosArrayDestroy(pGroupResInfo->pRows);
|
||||
// taosArrayDestroyEx(pGroupResInfo->pRows, freeEx);
|
||||
// pGroupResInfo->freeItem = false;
|
||||
// taosArrayDestroy(pGroupResInfo->pRows);
|
||||
taosArrayDestroyEx(pGroupResInfo->pRows, freeEx);
|
||||
pGroupResInfo->freeItem = false;
|
||||
pGroupResInfo->pRows = NULL;
|
||||
} else {
|
||||
pGroupResInfo->pRows = taosArrayDestroy(pGroupResInfo->pRows);
|
||||
|
|
|
@ -2880,6 +2880,8 @@ int32_t initBasicInfoEx(SOptrBasicInfo* pBasicInfo, SExprSupp* pSup, SExprInfo*
|
|||
void initDummyFunction(SqlFunctionCtx* pDummy, SqlFunctionCtx* pCtx, int32_t nums) {
|
||||
for (int i = 0; i < nums; i++) {
|
||||
pDummy[i].functionId = pCtx[i].functionId;
|
||||
pDummy[i].isNotNullFunc = pCtx[i].isNotNullFunc;
|
||||
pDummy[i].isPseudoFunc = pCtx[i].isPseudoFunc;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue