提交 990abaaa 编写于 作者: J jiajingbin

test: finish 1-insert/influxdb_line_taosc_insert.py

上级 0418e6c0
...@@ -95,8 +95,12 @@ class TDCom: ...@@ -95,8 +95,12 @@ class TDCom:
stb_list = map(lambda x: x[0], res_row_list) stb_list = map(lambda x: x[0], res_row_list)
for stb in stb_list: for stb in stb_list:
if type == "taosc": if type == "taosc":
tdSql.execute(f'drop table if exists `{stb}`')
if not stb[0].isdigit():
tdSql.execute(f'drop table if exists {stb}') tdSql.execute(f'drop table if exists {stb}')
elif type == "restful": elif type == "restful":
self.restApiPost(f"drop table if exists `{stb}`")
if not stb[0].isdigit():
self.restApiPost(f"drop table if exists {stb}") self.restApiPost(f"drop table if exists {stb}")
def dateToTs(self, datetime_input): def dateToTs(self, datetime_input):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册