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

test: bug fix and case update

上级 400d769c
......@@ -292,63 +292,50 @@ class TDTestCase:
tdSql.checkData(0, 0, None)
# support regular query about last ,first ,last_row
# tdSql.query("select last_row(c1,NULL) from testdb.t1")
# tdSql.checkData(0,0,None)
# tdSql.checkData(0,1,None)
# tdSql.query("select last_row(c1,123) from testdb.t1")
# tdSql.checkData(0,0,None)
# tdSql.checkData(0,1,123)
# tdSql.query("select last(c1,NULL) from testdb.t1")
# tdSql.checkData(0,0,9)
# tdSql.checkData(0,1,None)
# tdSql.query("select last(c1,123) from testdb.t1")
# tdSql.checkData(0,0,9)
# tdSql.checkData(0,1,123)
# tdSql.query("select first(c1,NULL) from testdb.t1")
# tdSql.checkData(0,0,1)
# tdSql.checkData(0,1,None)
# tdSql.query("select first(c1,123) from testdb.t1")
# tdSql.checkData(0,0,1)
# tdSql.checkData(0,1,123)
# tdSql.query("select last_row(c1,c2,c3,NULL,c4) from testdb.t1")
# tdSql.checkData(0,0,None)
# tdSql.checkData(0,1,None)
# tdSql.checkData(0,2,None)
# tdSql.checkData(0,3,None)
# tdSql.checkData(0,4,None)
# tdSql.query("select last_row(c1,c2,c3,123,c4) from testdb.t1")
# tdSql.checkData(0,0,None)
# tdSql.checkData(0,1,None)
# tdSql.checkData(0,2,None)
# tdSql.checkData(0,3,123)
# tdSql.checkData(0,4,None)
tdSql.error("select last_row(c1,NULL) from testdb.t1")
tdSql.error("select last_row(NULL) from testdb.t1")
tdSql.error("select last(NULL) from testdb.t1")
tdSql.error("select first(NULL) from testdb.t1")
tdSql.query("select last_row(c1,123) from testdb.t1")
tdSql.checkData(0,0,None)
tdSql.checkData(0,1,123)
tdSql.query("select last_row(123) from testdb.t1")
tdSql.checkData(0,0,123)
tdSql.error("select last(c1,NULL) from testdb.t1")
tdSql.query("select last(c1,123) from testdb.t1")
tdSql.checkData(0,0,9)
tdSql.checkData(0,1,123)
tdSql.error("select first(c1,NULL) from testdb.t1")
tdSql.query("select first(c1,123) from testdb.t1")
tdSql.checkData(0,0,1)
tdSql.checkData(0,1,123)
tdSql.error("select last_row(c1,c2,c3,NULL,c4) from testdb.t1")
tdSql.query("select last_row(c1,c2,c3,123,c4) from testdb.t1")
tdSql.checkData(0,0,None)
tdSql.checkData(0,1,None)
tdSql.checkData(0,2,None)
tdSql.checkData(0,3,123)
tdSql.checkData(0,4,None)
# tdSql.query("select last_row(c1,c2,c3,NULL,c4,t1,t2) from testdb.ct1")
# tdSql.checkData(0,0,9)
# tdSql.checkData(0,1,-99999)
# tdSql.checkData(0,2,-999)
# tdSql.checkData(0,3,None)
# tdSql.checkData(0,4,None)
# tdSql.checkData(0,5,0)
# tdSql.checkData(0,5,0)
# tdSql.query("select last_row(c1,c2,c3,123,c4,t1,t2) from testdb.ct1")
# tdSql.checkData(0,0,9)
# tdSql.checkData(0,1,-99999)
# tdSql.checkData(0,2,-999)
# tdSql.checkData(0,3,123)
# tdSql.checkData(0,4,None)
# tdSql.checkData(0,5,0)
# tdSql.checkData(0,5,0)
tdSql.error("select last_row(c1,c2,c3,NULL,c4,t1,t2) from testdb.ct1")
tdSql.query("select last_row(c1,c2,c3,123,c4,t1,t2) from testdb.ct1")
tdSql.checkData(0,0,9)
tdSql.checkData(0,1,-99999)
tdSql.checkData(0,2,-999)
tdSql.checkData(0,3,123)
tdSql.checkData(0,4,None)
tdSql.checkData(0,5,0)
tdSql.checkData(0,5,0)
# # bug need fix
tdSql.query("select last_row(c1), c2, c3 , c4, c5 from testdb.t1")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册