fix case
This commit is contained in:
parent
d362881572
commit
5fe7882abe
|
@ -59,9 +59,11 @@ class TDTestCase:
|
||||||
tdSql.query(f"select {condition} from {tbname} {where_condition} {group_condition} ")
|
tdSql.query(f"select {condition} from {tbname} {where_condition} {group_condition} ")
|
||||||
datas = [tdSql.getData(i,0) for i in range(tdSql.queryRows)]
|
datas = [tdSql.getData(i,0) for i in range(tdSql.queryRows)]
|
||||||
sum_data = sum(datas)
|
sum_data = sum(datas)
|
||||||
tdSql.query(f"select sum( {condition} ) from {tbname} {where_condition} {group_condition}")
|
tdSql.query(f"select sum( {condition} ) from {tbname} {where_condition} ")
|
||||||
tdSql.checkData(0, 0, sum_data)
|
tdSql.checkData(0, 0, sum_data)
|
||||||
|
|
||||||
|
tdSql.query(f"select {condition} from {tbname} {where_condition} {group_condition} ")
|
||||||
|
|
||||||
def __sum_err_check(self,tbanme):
|
def __sum_err_check(self,tbanme):
|
||||||
sqls = []
|
sqls = []
|
||||||
|
|
||||||
|
@ -199,7 +201,7 @@ class TDTestCase:
|
||||||
self.__create_tb()
|
self.__create_tb()
|
||||||
|
|
||||||
tdLog.printNoPrefix("==========step2:insert data")
|
tdLog.printNoPrefix("==========step2:insert data")
|
||||||
self.__insert_data(1000)
|
self.__insert_data(100)
|
||||||
|
|
||||||
tdLog.printNoPrefix("==========step3:all check")
|
tdLog.printNoPrefix("==========step3:all check")
|
||||||
self.all_test()
|
self.all_test()
|
||||||
|
|
Loading…
Reference in New Issue