提交 71826d7d 编写于 作者: S Shengliang Guan

minor changes

上级 baebd823
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册