diff --git a/tests/pytest/query/queryLike.py b/tests/pytest/query/queryLike.py index 2bcd5906a8eaa505e1702cefce7f8b2594f53f43..b3916ed84db1d558e4b95f62c2def19deee75944 100644 --- a/tests/pytest/query/queryLike.py +++ b/tests/pytest/query/queryLike.py @@ -92,13 +92,13 @@ class TDTestCase: tdSql.query("select * from st where tbname like 'tb_\_'") tdSql.checkRows(1) tdSql.query("select * from st where tbname like 'tb___'") - tdSql.checkRows(4) - tdSql.query("select * from st where tbname like 'tb_\__'") tdSql.checkRows(3) + tdSql.query("select * from st where tbname like 'tb_\__'") + tdSql.checkRows(2) tdSql.query("select * from st where tbname like 'tb_\_\_'") tdSql.checkRows(1) tdSql.query("select * from st where tbname like 'tb\__\_'") - tdSql.checkRows(1) + tdSql.checkRows(2) tdSql.query("select * from st where tbname like 'tb\__\__'") tdSql.checkRows(2) tdSql.query("select * from st where tbname like 'tb\__\_\_'") @@ -116,9 +116,9 @@ class TDTestCase: tdSql.query("select * from st where name like 'tbname\__';") tdSql.checkRows(3) tdSql.query("select * from st where name like 'tbname___';") - tdSql.checkRows(4) - tdSql.query("select * from st where name like 'tbname_\__';") tdSql.checkRows(3) + tdSql.query("select * from st where name like 'tbname_\__';") + tdSql.checkRows(2) tdSql.query("select * from st where name like 'tbname_\_\_';") tdSql.checkRows(1) tdSql.query("select * from st where name like 'tbname\_\__';") @@ -132,7 +132,8 @@ class TDTestCase: tdSql.query("select * from st where name like 'tbname\_\__\_';") tdSql.checkRows(2) tdSql.query("select name from st where name like 'tbname\_\_\__';") - tdSql.checkData(0,0 "tbname____") + tdSql.checkRows(1) + tdSql.checkData(0,0, "tbname____") # check escape about tags tdSql.query("select * from st where tagg like 'tag\_';") @@ -142,9 +143,9 @@ class TDTestCase: tdSql.query("select * from st where tagg like 'tag\__';") tdSql.checkRows(3) tdSql.query("select * from st where tagg like 'tag___';") - tdSql.checkRows(4) - tdSql.query("select * from st where tagg like 'tag_\__';") tdSql.checkRows(3) + tdSql.query("select * from st where tagg like 'tag_\__';") + tdSql.checkRows(2) tdSql.query("select * from st where tagg like 'tag_\_\_';") tdSql.checkRows(1) tdSql.query("select * from st where tagg like 'tag\_\__';") @@ -158,7 +159,7 @@ class TDTestCase: tdSql.query("select * from st where tagg like 'tag\_\__\_';") tdSql.checkRows(2) tdSql.query("select * from st where tagg like 'tag\_\__\_';") - tdSql.checkData(0,0 "tag__a_") + tdSql.checkData(0,0, "tag__a_") os.system("rm -rf ./*.py.sql")