fix: select tags - error of stmt can not be created

This commit is contained in:
slzhou 2023-08-16 16:00:16 +08:00
parent 0c62eed08f
commit c21559c3d5
1 changed files with 1 additions and 1 deletions

View File

@ -853,7 +853,7 @@ SNode* createSelectStmt(SAstCreateContext* pCxt, bool isDistinct, SNodeList* pPr
} }
SNode* setSelectStmtTagMode(SAstCreateContext* pCxt, SNode* pStmt, bool bSelectTags) { SNode* setSelectStmtTagMode(SAstCreateContext* pCxt, SNode* pStmt, bool bSelectTags) {
if (QUERY_NODE_SELECT_STMT == nodeType(pStmt)) { if (pStmt && QUERY_NODE_SELECT_STMT == nodeType(pStmt)) {
((SSelectStmt*)pStmt)->tagScan = bSelectTags; ((SSelectStmt*)pStmt)->tagScan = bSelectTags;
} }
return pStmt; return pStmt;