test: docs

This commit is contained in:
changshuaiqiang 2020-05-13 18:55:34 +08:00
parent 8fd3c2d788
commit 536a1ed4fa
1 changed files with 2 additions and 0 deletions

View File

@ -27,11 +27,13 @@ class TDTestCase:
tdSql.prepare()
print("==============step1")
print("prepare data")
tdSql.execute("create table db.st (ts timestamp, i int) tags(j int)")
tdSql.execute("create table db.tb using st tags(1)")
tdSql.execute("insert into db.tb values(now, 1)")
print("==============step2")
print("create table as select")
try:
tdSql.execute("create table db.test as select * from db.st")
except Exception as e: