minor changes

This commit is contained in:
Shengliang Guan 2022-02-14 18:53:18 +08:00
parent baebd82366
commit 71826d7d2d
1 changed files with 0 additions and 3 deletions

View File

@ -396,13 +396,11 @@ char* buildCreateStbReq(SCreateTableSql* pCreateTableSql, int32_t* outputLen, SP
SName n = {0};
if (createSName(&n, &pCreateTableSql->name, pParseCtx, pMsgBuf) != 0) {
tFreeSMCreateStbReq(&createReq);
return NULL;
}
if (tNameExtractFullName(&n, createReq.name) != 0) {
buildInvalidOperationMsg(pMsgBuf, "invalid table name or database not specified");
tFreeSMCreateStbReq(&createReq);
return NULL;
}
@ -415,7 +413,6 @@ char* buildCreateStbReq(SCreateTableSql* pCreateTableSql, int32_t* outputLen, SP
void* pBuf = pReq;
tSerializeSMCreateStbReq(&pBuf, &createReq);
tFreeSMCreateStbReq(&createReq);
*outputLen = tlen;
return pReq;
}