This commit is contained in:
cpwu 2022-05-09 00:03:53 +08:00
parent efc6b96746
commit 472ade7062
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class TDTestCase:
for j in range(tdSql.queryRows):
tdSql.checkData(j,0, tdSql.getData(j,1)[pos-1:lens]) if tdSql.getData(j,1) else tdSql.checkData(j, 0, None)
[ tdSql.query(f"select substr({condition}) from {tbname} {where_condition} {group} ") for group in groups ]
[ tdSql.query(f"select substr({condition}, {pos}, {lens}) from {tbname} {where_condition} {group} ") for group in groups ]
def __substr_err_check(self,tbname):