test: docs
This commit is contained in:
parent
8fd3c2d788
commit
536a1ed4fa
|
@ -27,11 +27,13 @@ class TDTestCase:
|
||||||
tdSql.prepare()
|
tdSql.prepare()
|
||||||
|
|
||||||
print("==============step1")
|
print("==============step1")
|
||||||
|
print("prepare data")
|
||||||
tdSql.execute("create table db.st (ts timestamp, i int) tags(j int)")
|
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("create table db.tb using st tags(1)")
|
||||||
tdSql.execute("insert into db.tb values(now, 1)")
|
tdSql.execute("insert into db.tb values(now, 1)")
|
||||||
|
|
||||||
print("==============step2")
|
print("==============step2")
|
||||||
|
print("create table as select")
|
||||||
try:
|
try:
|
||||||
tdSql.execute("create table db.test as select * from db.st")
|
tdSql.execute("create table db.test as select * from db.st")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue