未验证 提交 daa52050 编写于 作者: sangshuduo's avatar sangshuduo 提交者: GitHub

Hotfix/sangshuduo/td 4406 taosdemo auto create tables (#6294)

* [TD-4406]<fix>: taosdemo auto create table.

* fix child table exists or auto create logic.

* reduce redundant conditions.
Co-authored-by: NShuduo Sang <sdsang@taosdata.com>
上级 934517b0
......@@ -5144,8 +5144,7 @@ static int generateStbSQLHead(
char headBuf[HEAD_BUFF_LEN];
if ((AUTO_CREATE_SUBTBL == superTblInfo->autoCreateTable)
&& (TBL_ALREADY_EXISTS != superTblInfo->childTblExists)) {
if (AUTO_CREATE_SUBTBL == superTblInfo->autoCreateTable) {
char* tagsValBuf = NULL;
if (0 == superTblInfo->tagSource) {
tagsValBuf = generateTagVaulesForStb(superTblInfo, tableSeq);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册