From 0a3c741ffe6af5311ed61a062567a69ba5b47047 Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Fri, 27 May 2022 17:46:21 +0800 Subject: [PATCH] feat: parser adapts asynchronous interface --- source/libs/parser/src/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/parser/src/parser.c b/source/libs/parser/src/parser.c index ee223f2291..a9962b0444 100644 --- a/source/libs/parser/src/parser.c +++ b/source/libs/parser/src/parser.c @@ -185,8 +185,8 @@ int32_t qParseSql(SParseContext* pCxt, SQuery** pQuery) { int32_t qSyntaxParseSql(SParseContext* pCxt, SQuery** pQuery, struct SCatalogReq* pCatalogReq) { int32_t code = TSDB_CODE_SUCCESS; - if (isInsertSql(pCxt->pSql, pCxt->sqlLen)) { - // code = preParseInsertSql(pCxt, pQuery); + if (qIsInsertSql(pCxt->pSql, pCxt->sqlLen)) { + // todo insert sql } else { code = parse(pCxt, pQuery); } -- GitLab