提交 c46259b6 编写于 作者: wmmhello's avatar wmmhello

add test case

上级 490c4682
...@@ -209,11 +209,19 @@ class TDTestCase: ...@@ -209,11 +209,19 @@ class TDTestCase:
tdSql.query("select jtag from db_json_tag_test.jsons1 where jtag is not null") tdSql.query("select jtag from db_json_tag_test.jsons1 where jtag is not null")
tdSql.checkRows(5) tdSql.checkRows(5)
#tdSql.query("select * from db_json_tag_test.jsons1 where jtag->'location'='null'") tdSql.query("select * from db_json_tag_test.jsons1 where jtag->'location' is not null")
#tdSql.checkRows(5) tdSql.checkRows(3)
tdSql.query("select tbname,jtag from db_json_tag_test.jsons1 where jtag->'location' is null")
tdSql.checkRows(6)
tdSql.query("select * from db_json_tag_test.jsons1 where jtag->'num' is not null")
tdSql.checkRows(2)
tdSql.query("select * from db_json_tag_test.jsons1 where jtag->'location'='null'")
tdSql.checkRows(0)
#tdSql.query("select * from db_json_tag_test.jsons1 where jtag->'num'='null'") tdSql.error("select * from db_json_tag_test.jsons1 where jtag->'num'='null'")
#tdSql.checkRows(5)
def stop(self): def stop(self):
tdSql.close() tdSql.close()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册