From ca2e566319aa634c8dc663e2eb1d64adf50cd4b5 Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Thu, 23 Mar 2023 17:56:56 +0800 Subject: [PATCH] enh: improve error reporting information --- source/libs/parser/src/parInsertSql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/parser/src/parInsertSql.c b/source/libs/parser/src/parInsertSql.c index 5b0b5acf2b..18d65dd477 100644 --- a/source/libs/parser/src/parInsertSql.c +++ b/source/libs/parser/src/parInsertSql.c @@ -1540,7 +1540,7 @@ static int32_t checkTableClauseFirstToken(SInsertParseContext* pCxt, SVnodeModif } } - if (TK_NK_ID != pTbName->type && TK_NK_STRING != pTbName->type) { + if (TK_NK_ID != pTbName->type && TK_NK_STRING != pTbName->type && TK_NK_QUESTION != pTbName->type) { return buildSyntaxErrMsg(&pCxt->msg, "table_name is expected", pTbName->z); }