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: Shuduo Sang <sdsang@taosdata.com>
This commit is contained in:
parent
934517b0b4
commit
daa5205052
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue