From b22ce4c9fe10274304b3c267d42614311c02c0dd Mon Sep 17 00:00:00 2001 From: jiacy-jcy <714897623@qq.com> Date: Tue, 26 Apr 2022 14:48:33 +0800 Subject: [PATCH] update --- tests/system-test/2-query/Now.py | 11 +++++++++++ tests/system-test/2-query/timezone.py | 1 + 2 files changed, 12 insertions(+) diff --git a/tests/system-test/2-query/Now.py b/tests/system-test/2-query/Now.py index 7f0e173439..7ad8a22720 100644 --- a/tests/system-test/2-query/Now.py +++ b/tests/system-test/2-query/Now.py @@ -122,6 +122,17 @@ class TDTestCase: tdSql.checkRows(0) tdSql.query("select now() from ntb where ts=today()") tdSql.checkRows(1) + tdSql.query("select now()+1 from ntb") + tdSql.checkRows(3) + tdSql.query("select now()+9223372036854775807 from ntb") + tdSql.checkRows(3) + tdSql.query("select now()+1.5 from ntb") + tdSql.checkRows(3) + + + tdSql.error("select now()+'abc' from ntb") + tdSql.error("select now()+abc from ntb") + # stable tdSql.query("select now() from stb") diff --git a/tests/system-test/2-query/timezone.py b/tests/system-test/2-query/timezone.py index a273b1c0f8..36045fac5e 100644 --- a/tests/system-test/2-query/timezone.py +++ b/tests/system-test/2-query/timezone.py @@ -73,6 +73,7 @@ class TDTestCase: tdSql.checkRows(2) tdSql.query("select timezone()+1 from ntb") tdSql.checkRows(2) + tdSql.query("select timezone()+1.5 from ntb") def stop(self): tdSql.close() -- GitLab