From 97f048364bc901982f44ecabe662d9f1cc219870 Mon Sep 17 00:00:00 2001 From: slzhou Date: Wed, 30 Aug 2023 14:37:04 +0800 Subject: [PATCH] enhance: regenerate sql.c --- include/common/ttokendef.h | 2 ++ source/libs/parser/src/sql.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 9b2ea843ce..944880511b 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -16,6 +16,7 @@ #ifndef _TD_COMMON_TOKEN_H_ #define _TD_COMMON_TOKEN_H_ + #define TK_OR 1 #define TK_AND 2 #define TK_UNION 3 @@ -356,6 +357,7 @@ #define TK_VIEW 338 #define TK_WAL 339 + #define TK_NK_SPACE 600 #define TK_NK_COMMENT 601 #define TK_NK_ILLEGAL 602 diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index e9e712296d..5b6e93e4f2 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -4955,7 +4955,7 @@ static YYACTIONTYPE yy_reduce( #line 100 "sql.y" { pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy889, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy847); - addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy236); + pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy236); } #line 4960 "sql.c" break;