From 472ade70623cf022006a21229ce983ef18b104d6 Mon Sep 17 00:00:00 2001 From: cpwu Date: Mon, 9 May 2022 00:03:53 +0800 Subject: [PATCH] fix case --- tests/system-test/2-query/substr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/system-test/2-query/substr.py b/tests/system-test/2-query/substr.py index fb4b54a525..5fed3762e8 100644 --- a/tests/system-test/2-query/substr.py +++ b/tests/system-test/2-query/substr.py @@ -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):