diff --git a/tests/system-test/2-query/abs.py b/tests/system-test/2-query/abs.py index eb31abc6dd8eccc1a0fb7a9fc42c162861e2f3f6..ccf83df952fadb274088fa2e9d296a6d955e455f 100644 --- a/tests/system-test/2-query/abs.py +++ b/tests/system-test/2-query/abs.py @@ -341,6 +341,7 @@ class TDTestCase: def abs_func_filter(self): + tdSql.execute("use db") tdSql.query("select c1, abs(c1) -0 ,ceil(c1-0.1)-0 ,floor(c1+0.1)-0.1 ,ceil(log(c1,2)-0.5) from ct4 where c1>5 ") tdSql.checkRows(3) tdSql.checkData(0,0,8) diff --git a/tests/system-test/2-query/ceil.py b/tests/system-test/2-query/ceil.py index 58d506b3e086dab3ed74345196ecd66868a2fc53..4196a5a8ce858bbc2d2f680e143cfb2488953dca 100644 --- a/tests/system-test/2-query/ceil.py +++ b/tests/system-test/2-query/ceil.py @@ -340,6 +340,7 @@ class TDTestCase: tdSql.checkData(1, 2, 7.900000000) def abs_func_filter(self): + tdSql.execute("use db") tdSql.query("select c1, abs(c1) -0 ,ceil(c1-0.1)-0 ,floor(c1+0.1)-0.1 ,ceil(log(c1,2)-0.5) from ct4 where c1>5 ") tdSql.checkRows(3) tdSql.checkData(0,0,8) diff --git a/tests/system-test/2-query/floor.py b/tests/system-test/2-query/floor.py index 4e4de479f6646c57c0edaeca5cd12f850948a4c2..c955c24e05c37f51856a45956b3befd6552ac812 100644 --- a/tests/system-test/2-query/floor.py +++ b/tests/system-test/2-query/floor.py @@ -340,6 +340,7 @@ class TDTestCase: tdSql.checkData(1, 2, 6.900000000) def abs_func_filter(self): + tdSql.execute("use db") tdSql.query("select c1, abs(c1) -0 ,ceil(c1-0.1)-0 ,floor(c1+0.1)-0.1 ,ceil(log(c1,2)-0.5) from ct4 where c1>5 ") tdSql.checkRows(3) tdSql.checkData(0,0,8) diff --git a/tests/system-test/2-query/log.py b/tests/system-test/2-query/log.py index 2b333ed798c903220b9ac944f676608de6accd26..e6762b2d61205119b39f7c21ddca9e81a5f7c9a3 100644 --- a/tests/system-test/2-query/log.py +++ b/tests/system-test/2-query/log.py @@ -507,6 +507,7 @@ class TDTestCase: def abs_func_filter(self): + tdSql.execute("use db") tdSql.query("select c1, abs(c1) -0 ,ceil(c1-0.1)-0 ,floor(c1+0.1)-0.1 ,ceil(log(c1,2)-0.5) from ct4 where c1>5 ") tdSql.checkRows(3) tdSql.checkData(0,0,8) diff --git a/tests/system-test/2-query/round.py b/tests/system-test/2-query/round.py index bc3a25782a2194590f823af2db978c04efd63468..223e56bce65de91d8a0ff5c677bc6e17993579c7 100644 --- a/tests/system-test/2-query/round.py +++ b/tests/system-test/2-query/round.py @@ -344,6 +344,7 @@ class TDTestCase: tdSql.checkData(1, 2, 7.900000000) def abs_func_filter(self): + tdSql.execute("use db") tdSql.query("select c1, abs(c1) -0 ,ceil(c1-0.1)-0 ,floor(c1+0.1)-0.1 ,ceil(log(c1,2)-0.5) from ct4 where c1>5 ") tdSql.checkRows(3) tdSql.checkData(0,0,8)