Update parTranslater.c

This commit is contained in:
Pan Wei 2024-09-03 18:30:08 +08:00 committed by GitHub
parent 38e8d9f2fa
commit 2bb2c17517
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -6015,7 +6015,9 @@ static int32_t isOperatorEqTbnameCond(STranslateContext* pCxt, SOperatorNode* pO
}
SArray* pTabNames = NULL;
pTabNames = taosArrayInit(1, sizeof(void*));
if (!pTabNames) return TSDB_CODE_OUT_OF_MEMORY;
if (!pTabNames) {
return terrno;
}
if (NULL == taosArrayPush(pTabNames, &(pValueNode->literal))) {
taosArrayDestroy(pTabNames);
return terrno;