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) {