From cb2311fde68b7d01a3943865b1f34027514077ef Mon Sep 17 00:00:00 2001 From: slzhou Date: Thu, 19 Oct 2023 13:28:48 +0800 Subject: [PATCH] fix minior error --- source/libs/parser/src/parInsertSql.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/libs/parser/src/parInsertSql.c b/source/libs/parser/src/parInsertSql.c index 81cfb02ada..c395434ea2 100644 --- a/source/libs/parser/src/parInsertSql.c +++ b/source/libs/parser/src/parInsertSql.c @@ -2086,15 +2086,17 @@ static int32_t setVnodeModifOpStmt(SInsertParseContext* pCxt, SCatalogReq* pCata int32_t code = checkAuthFromMetaData(pMetaData->pUser, &pStmt->pTagCond); if (code == TSDB_CODE_SUCCESS) { code = getTableMetaFromMetaData(pMetaData->pTableMeta, &pStmt->pTableMeta); - if (code == TSDB_CODE_SUCCESS && pStmt->pTableMeta->tableType == TSDB_SUPER_TABLE && !pStmt->usingTableProcessing) { + } + if (code == TSDB_CODE_SUCCESS) { + if (pStmt->pTableMeta->tableType == TSDB_SUPER_TABLE && !pStmt->usingTableProcessing) { pStmt->stbSyntax = true; } - if (code == TSDB_CODE_SUCCESS) { if (pStmt->usingTableProcessing || pStmt->stbSyntax) { return processTableSchemaFromMetaData(pCxt, pMetaData, pStmt, true); } return processTableSchemaFromMetaData(pCxt, pMetaData, pStmt, false); } + return code; } static int32_t resetVnodeModifOpStmt(SInsertParseContext* pCxt, SQuery* pQuery) {