From efc6b96746c4df21adecd6c98586419ba87b0d3c Mon Sep 17 00:00:00 2001 From: cpwu Date: Mon, 9 May 2022 00:01:48 +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 9e36de3fd6..fb4b54a525 100644 --- a/tests/system-test/2-query/substr.py +++ b/tests/system-test/2-query/substr.py @@ -74,7 +74,7 @@ class TDTestCase: substr_group_no_having= self.__group_condition(condition) groups = ["", substr_group_having, substr_group_no_having] - if pos == 0: + if pos < 1: tdSql.error(f"select substr( {condition}, {pos}, {lens}) , {condition} from {tbname} ") tdSql.query(f"select substr( {condition}, {pos}, {lens}) , {condition} from {tbname} ") -- GitLab