Merge pull request #7043 from taosdata/dev/chr
[TD-4432]<test>: modify taodemo-testcase that using stmt interface
This commit is contained in:
commit
cabbc135fa
|
@ -244,17 +244,17 @@ class TDTestCase:
|
|||
tdSql.query("select count(*) from stb1")
|
||||
tdSql.checkData(0, 0, 10)
|
||||
|
||||
# # insert: sample json
|
||||
# os.system("%staosdemo -f tools/taosdemoAllTest/stmt/insert-sample-stmt.json -y " % binPath)
|
||||
# tdSql.execute("use dbtest123")
|
||||
# tdSql.query("select c2 from stb0")
|
||||
# tdSql.checkData(0, 0, 2147483647)
|
||||
# tdSql.query("select * from stb1 where t1=-127")
|
||||
# tdSql.checkRows(20)
|
||||
# tdSql.query("select * from stb1 where t2=127")
|
||||
# tdSql.checkRows(10)
|
||||
# tdSql.query("select * from stb1 where t2=126")
|
||||
# tdSql.checkRows(10)
|
||||
# insert: sample json
|
||||
os.system("%staosdemo -f tools/taosdemoAllTest/stmt/insert-sample-stmt.json -y " % binPath)
|
||||
tdSql.execute("use dbtest123")
|
||||
tdSql.query("select c2 from stb0")
|
||||
tdSql.checkData(0, 0, 2147483647)
|
||||
tdSql.query("select * from stb1 where t1=-127")
|
||||
tdSql.checkRows(20)
|
||||
tdSql.query("select * from stb1 where t2=127")
|
||||
tdSql.checkRows(10)
|
||||
tdSql.query("select * from stb1 where t2=126")
|
||||
tdSql.checkRows(10)
|
||||
|
||||
# insert: test interlace parament
|
||||
os.system("%staosdemo -f tools/taosdemoAllTest/stmt/insert-interlace-row-stmt.json -y " % binPath)
|
||||
|
|
|
@ -86,7 +86,7 @@ class TwoClients:
|
|||
tdSql.execute("alter table stb2_0 add column col2 binary(4)")
|
||||
tdSql.execute("alter table stb2_0 drop column col1")
|
||||
tdSql.execute("insert into stb2_0 values(1614218422000,8638,'R')")
|
||||
tdSql.execute("drop dnode 2")
|
||||
tdSql.execute("drop dnode chenhaoran02")
|
||||
sleep(10)
|
||||
os.system("rm -rf /var/lib/taos/*")
|
||||
print("clear dnode chenhaoran02'data files")
|
||||
|
@ -142,4 +142,4 @@ class TwoClients:
|
|||
clients = TwoClients()
|
||||
clients.initConnection()
|
||||
# clients.getBuildPath()
|
||||
clients.run()
|
||||
clients.run()
|
||||
|
|
Loading…
Reference in New Issue