未验证 提交 cabbc135 编写于 作者: H Hui Li 提交者: GitHub

Merge pull request #7043 from taosdata/dev/chr

[TD-4432]<test>: modify taodemo-testcase that using stmt interface
...@@ -244,17 +244,17 @@ class TDTestCase: ...@@ -244,17 +244,17 @@ class TDTestCase:
tdSql.query("select count(*) from stb1") tdSql.query("select count(*) from stb1")
tdSql.checkData(0, 0, 10) tdSql.checkData(0, 0, 10)
# # insert: sample json # insert: sample json
# os.system("%staosdemo -f tools/taosdemoAllTest/stmt/insert-sample-stmt.json -y " % binPath) os.system("%staosdemo -f tools/taosdemoAllTest/stmt/insert-sample-stmt.json -y " % binPath)
# tdSql.execute("use dbtest123") tdSql.execute("use dbtest123")
# tdSql.query("select c2 from stb0") tdSql.query("select c2 from stb0")
# tdSql.checkData(0, 0, 2147483647) tdSql.checkData(0, 0, 2147483647)
# tdSql.query("select * from stb1 where t1=-127") tdSql.query("select * from stb1 where t1=-127")
# tdSql.checkRows(20) tdSql.checkRows(20)
# tdSql.query("select * from stb1 where t2=127") tdSql.query("select * from stb1 where t2=127")
# tdSql.checkRows(10) tdSql.checkRows(10)
# tdSql.query("select * from stb1 where t2=126") tdSql.query("select * from stb1 where t2=126")
# tdSql.checkRows(10) tdSql.checkRows(10)
# insert: test interlace parament # insert: test interlace parament
os.system("%staosdemo -f tools/taosdemoAllTest/stmt/insert-interlace-row-stmt.json -y " % binPath) os.system("%staosdemo -f tools/taosdemoAllTest/stmt/insert-interlace-row-stmt.json -y " % binPath)
......
...@@ -86,7 +86,7 @@ class TwoClients: ...@@ -86,7 +86,7 @@ class TwoClients:
tdSql.execute("alter table stb2_0 add column col2 binary(4)") tdSql.execute("alter table stb2_0 add column col2 binary(4)")
tdSql.execute("alter table stb2_0 drop column col1") tdSql.execute("alter table stb2_0 drop column col1")
tdSql.execute("insert into stb2_0 values(1614218422000,8638,'R')") tdSql.execute("insert into stb2_0 values(1614218422000,8638,'R')")
tdSql.execute("drop dnode 2") tdSql.execute("drop dnode chenhaoran02")
sleep(10) sleep(10)
os.system("rm -rf /var/lib/taos/*") os.system("rm -rf /var/lib/taos/*")
print("clear dnode chenhaoran02'data files") print("clear dnode chenhaoran02'data files")
...@@ -142,4 +142,4 @@ class TwoClients: ...@@ -142,4 +142,4 @@ class TwoClients:
clients = TwoClients() clients = TwoClients()
clients.initConnection() clients.initConnection()
# clients.getBuildPath() # clients.getBuildPath()
clients.run() clients.run()
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册