From bd2669b4f1fced90d3b22ef842acb1976a76b5e1 Mon Sep 17 00:00:00 2001 From: slzhou Date: Tue, 19 Sep 2023 16:40:23 +0800 Subject: [PATCH] fix: show normal tables core --- source/libs/parser/src/parAstCreater.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 37a68f1bf3..e0b135b4f9 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -1553,6 +1553,9 @@ SNode* createShowStmt(SAstCreateContext* pCxt, ENodeType type) { } SNode* setShowKind(SAstCreateContext* pCxt, SNode* pStmt, EShowKind showKind) { + if (pStmt == NULL) { + return NULL; + } SShowStmt* pShow = (SShowStmt*)pStmt; pShow->showKind = showKind; return pStmt;