chore: code optimization

This commit is contained in:
kailixu 2024-01-05 13:08:16 +08:00
parent 81d8b9b98b
commit d3aee612e0
1 changed files with 0 additions and 4 deletions

View File

@ -6939,10 +6939,6 @@ static int32_t translateCreateNormalIndex(STranslateContext* pCxt, SCreateIndexS
taosMemoryFree(pMeta);
return code;
}
if (TSDB_SUPER_TABLE != pMeta->tableType) {
taosMemoryFree(pMeta);
return generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, "Only super table is allowed");
}
if (LIST_LENGTH(pStmt->pCols) != 1) {
taosMemoryFree(pMeta);