chore: code optimization
This commit is contained in:
parent
81d8b9b98b
commit
d3aee612e0
|
@ -6939,10 +6939,6 @@ static int32_t translateCreateNormalIndex(STranslateContext* pCxt, SCreateIndexS
|
||||||
taosMemoryFree(pMeta);
|
taosMemoryFree(pMeta);
|
||||||
return code;
|
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) {
|
if (LIST_LENGTH(pStmt->pCols) != 1) {
|
||||||
taosMemoryFree(pMeta);
|
taosMemoryFree(pMeta);
|
||||||
|
|
Loading…
Reference in New Issue