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) {
|
void cleanupGroupResInfo(SGroupResInfo* pGroupResInfo) {
|
||||||
taosMemoryFreeClear(pGroupResInfo->pBuf);
|
taosMemoryFreeClear(pGroupResInfo->pBuf);
|
||||||
if (pGroupResInfo->freeItem) {
|
if (pGroupResInfo->freeItem) {
|
||||||
taosArrayDestroy(pGroupResInfo->pRows);
|
// taosArrayDestroy(pGroupResInfo->pRows);
|
||||||
// taosArrayDestroyEx(pGroupResInfo->pRows, freeEx);
|
taosArrayDestroyEx(pGroupResInfo->pRows, freeEx);
|
||||||
// pGroupResInfo->freeItem = false;
|
pGroupResInfo->freeItem = false;
|
||||||
pGroupResInfo->pRows = NULL;
|
pGroupResInfo->pRows = NULL;
|
||||||
} else {
|
} else {
|
||||||
pGroupResInfo->pRows = taosArrayDestroy(pGroupResInfo->pRows);
|
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) {
|
void initDummyFunction(SqlFunctionCtx* pDummy, SqlFunctionCtx* pCtx, int32_t nums) {
|
||||||
for (int i = 0; i < nums; i++) {
|
for (int i = 0; i < nums; i++) {
|
||||||
pDummy[i].functionId = pCtx[i].functionId;
|
pDummy[i].functionId = pCtx[i].functionId;
|
||||||
|
pDummy[i].isNotNullFunc = pCtx[i].isNotNullFunc;
|
||||||
|
pDummy[i].isPseudoFunc = pCtx[i].isPseudoFunc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue