fix: add dbname on using stb

This commit is contained in:
Alex Duan 2024-01-15 12:42:41 +08:00
parent 062e5a339e
commit 2e4b268f4c
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ class AutoGen:
self.child_name = prename
for i in range(cnt):
tags_data = self.gen_data(i, self.mtags)
sql = f"create table {self.dbname}.{prename}{i} using {stbname} tags({tags_data})"
sql = f"create table {self.dbname}.{prename}{i} using {self.dbname}.{stbname} tags({tags_data})"
tdSql.execute(sql)
tdLog.info(f"create child tables {cnt} ok")