feat: parser adapts asynchronous interface

This commit is contained in:
Xiaoyu Wang 2022-05-27 17:46:21 +08:00
parent 1005fb8850
commit 0a3c741ffe
1 changed files with 2 additions and 2 deletions

View File

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