case: add use db
This commit is contained in:
parent
0e6486e3ec
commit
bc1371a4b7
|
@ -47,6 +47,10 @@ class TDTestCase:
|
||||||
def run(self):
|
def run(self):
|
||||||
tdSql.prepare()
|
tdSql.prepare()
|
||||||
dbname = "db"
|
dbname = "db"
|
||||||
|
|
||||||
|
# full type test
|
||||||
|
self.full_datatype_test()
|
||||||
|
|
||||||
tdSql.execute(
|
tdSql.execute(
|
||||||
f"create table {dbname}.ntb(ts timestamp,c1 int,c2 double,c3 float)")
|
f"create table {dbname}.ntb(ts timestamp,c1 int,c2 double,c3 float)")
|
||||||
tdSql.execute(
|
tdSql.execute(
|
||||||
|
@ -305,9 +309,6 @@ class TDTestCase:
|
||||||
tdSql.checkData(0, 1, 11)
|
tdSql.checkData(0, 1, 11)
|
||||||
tdSql.checkData(1, 1, -9)
|
tdSql.checkData(1, 1, -9)
|
||||||
|
|
||||||
# full type test
|
|
||||||
self.full_datatype_test()
|
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
tdSql.close()
|
tdSql.close()
|
||||||
tdLog.success("%s successfully executed" % __file__)
|
tdLog.success("%s successfully executed" % __file__)
|
||||||
|
|
Loading…
Reference in New Issue