提交 5033cf0c 编写于 作者: W wenzhouwww@live.cn

update case for sample

上级 7fc1e3a4
...@@ -427,10 +427,10 @@ class TDTestCase: ...@@ -427,10 +427,10 @@ class TDTestCase:
# err9 = {"col": "st1"} # err9 = {"col": "st1"}
# self.checksample(**err9) # col: tag # self.checksample(**err9) # col: tag
tdSql.query(" select sample(st1 ,1) from t1 ") tdSql.query(" select sample(st1 ,1) from t1 ")
err10 = {"col": 1} # err10 = {"col": 1}
self.checksample(**err10) # col: value # self.checksample(**err10) # col: value
err11 = {"col": "NULL"} # err11 = {"col": "NULL"}
self.checksample(**err11) # col: NULL # self.checksample(**err11) # col: NULL
err12 = {"col": "%_"} err12 = {"col": "%_"}
self.checksample(**err12) # col: %_ self.checksample(**err12) # col: %_
err13 = {"col": "c3"} err13 = {"col": "c3"}
...@@ -445,12 +445,12 @@ class TDTestCase: ...@@ -445,12 +445,12 @@ class TDTestCase:
self.checksample(**err17) # nchar col self.checksample(**err17) # nchar col
err18 = {"col": "c6"} err18 = {"col": "c6"}
self.checksample(**err18) # bool col self.checksample(**err18) # bool col
err19 = {"col": "'c1'"} # err19 = {"col": "'c1'"}
self.checksample(**err19) # col: string # self.checksample(**err19) # col: string
err20 = {"col": None} err20 = {"col": None}
self.checksample(**err20) # col: None self.checksample(**err20) # col: None
err21 = {"col": "''"} # err21 = {"col": "''"}
self.checksample(**err21) # col: '' # self.checksample(**err21) # col: ''
err22 = {"col": "tt1.c1"} err22 = {"col": "tt1.c1"}
self.checksample(**err22) # not table_expr col self.checksample(**err22) # not table_expr col
err23 = {"col": "t1"} err23 = {"col": "t1"}
...@@ -459,10 +459,10 @@ class TDTestCase: ...@@ -459,10 +459,10 @@ class TDTestCase:
self.checksample(**err24) # stbname self.checksample(**err24) # stbname
err25 = {"col": "db"} err25 = {"col": "db"}
self.checksample(**err25) # datbasename self.checksample(**err25) # datbasename
err26 = {"col": "True"} # err26 = {"col": "True"}
self.checksample(**err26) # col: BOOL 1 # self.checksample(**err26) # col: BOOL 1
err27 = {"col": True} # err27 = {"col": True}
self.checksample(**err27) # col: BOOL 2 # self.checksample(**err27) # col: BOOL 2
err28 = {"col": "*"} err28 = {"col": "*"}
self.checksample(**err28) # col: all col self.checksample(**err28) # col: all col
err29 = {"func": "sample[", "r_comm": "]"} err29 = {"func": "sample[", "r_comm": "]"}
...@@ -678,7 +678,7 @@ class TDTestCase: ...@@ -678,7 +678,7 @@ class TDTestCase:
tdSql.error(" select sample(c1,tbname) from t1 ") tdSql.error(" select sample(c1,tbname) from t1 ")
tdSql.error(" select sample(c1,ts) from t1 ") tdSql.error(" select sample(c1,ts) from t1 ")
tdSql.error(" select sample(c1,false) from t1 ") tdSql.error(" select sample(c1,false) from t1 ")
tdSql.error(" select sample(123,1) from t1 ") tdSql.query(" select sample(123,1) from t1 ")
tdSql.query(" select sample(c1,2) from t1 ") tdSql.query(" select sample(c1,2) from t1 ")
tdSql.checkRows(2) tdSql.checkRows(2)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册