Merge branch 'szhou/continue-coing' of github.com:taosdata/TDengine into szhou/continue-coing

This commit is contained in:
slzhou 2023-10-24 07:38:49 +08:00
commit ae8d5a53e2
1 changed files with 2 additions and 0 deletions

View File

@ -1892,6 +1892,7 @@ static int32_t parseInsertStbClauseBottom(SInsertParseContext* pCxt, SVnodeModif
SBoundColInfo stbBoundColInfo;
insInitBoundColsInfo(tblInfo.numOfColumns + tblInfo.numOfTags + 1, &stbBoundColInfo);
if (!pStmt->pBoundCols) {
insDestroyBoundColInfo(&stbBoundColInfo);
return buildSyntaxErrMsg(&pCxt->msg, "(...tbname...) bounded cols is expected", pStmt->pSql);
}
SToken token;
@ -1906,6 +1907,7 @@ static int32_t parseInsertStbClauseBottom(SInsertParseContext* pCxt, SVnodeModif
if (TSDB_CODE_SUCCESS == code) {
code = parseDataClause(pCxt, pStmt, rowsDataCxt);
}
insDestroyBoundColInfo(&stbBoundColInfo);
return code;
}