From b36fb21f411d1c74ea7a915e08e44e7cdbfccf3b Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Wed, 15 Dec 2021 11:01:58 +0800 Subject: [PATCH] add test case for elapsed --- tests/pytest/functions/function_elapsed_case.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/pytest/functions/function_elapsed_case.py b/tests/pytest/functions/function_elapsed_case.py index 56610a9347..6b279d7f63 100644 --- a/tests/pytest/functions/function_elapsed_case.py +++ b/tests/pytest/functions/function_elapsed_case.py @@ -320,6 +320,8 @@ class ElapsedCase: def selectIllegalTest(self): tdSql.execute("use wxy_db") + tdSql.error("select elapsed() from t1") + tdSql.error("select elapsed(,) from t1") tdSql.error("select elapsed(1) from t1 where ts > '2021-11-22 00:00:00' and ts < '2021-11-23 00:00:00'") tdSql.error("select elapsed('2021-11-18 00:00:10') from t1 where ts > '2021-11-22 00:00:00' and ts < '2021-11-23 00:00:00'") tdSql.error("select elapsed(now) from t1 where ts > '2021-11-22 00:00:00' and ts < '2021-11-23 00:00:00'") -- GitLab