提交 e0b00c05 编写于 作者: haoranc's avatar haoranc

[TD-4432]<test>: add taodemo-testcase that using stmt interface

上级 d0d044e2
...@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册