enh: improve error reporting information

This commit is contained in:
Xiaoyu Wang 2023-03-23 17:56:56 +08:00
parent bbd5191800
commit ca2e566319
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}