From eb682cef19f4f3bca8779a4048900471422f3dc2 Mon Sep 17 00:00:00 2001 From: slzhou Date: Mon, 21 Aug 2023 11:38:03 +0800 Subject: [PATCH] fix:compact time range - start is a keyword now --- tests/pytest/topic/topicQuery.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/pytest/topic/topicQuery.py b/tests/pytest/topic/topicQuery.py index 1ee3c3a427..396725fa57 100644 --- a/tests/pytest/topic/topicQuery.py +++ b/tests/pytest/topic/topicQuery.py @@ -54,7 +54,7 @@ class TDTestCase: tdSql.execute("use db") - tdSql.execute("create table test(ts timestamp, start timestamp, value int)") + tdSql.execute("create table test(ts timestamp, start1 timestamp, value int)") tdSql.execute("insert into test values(%d, %d, 1)" % (self.ts, self.ts)) tdSql.execute("insert into test values(%d, %d, 1)" % (self.ts + 1, self.ts + 1)) tdSql.execute("insert into test values(%d, %d, 1)" % (self.ts + 2, self.ts + 2)) @@ -72,13 +72,13 @@ class TDTestCase: tdSql.query("select * from test where ts = %d" % self.ts) tdSql.checkRows(1) - tdSql.query("select * from test where start >= %d" % self.ts) + tdSql.query("select * from test where start1 >= %d" % self.ts) tdSql.checkRows(4) - tdSql.query("select * from test where start > %d" % self.ts) + tdSql.query("select * from test where start1 > %d" % self.ts) tdSql.checkRows(3) - tdSql.query("select * from test where start = %d" % self.ts) + tdSql.query("select * from test where start1 = %d" % self.ts) tdSql.checkRows(1) @@ -88,4 +88,4 @@ class TDTestCase: tdCases.addWindows(__file__, TDTestCase()) -tdCases.addLinux(__file__, TDTestCase()) \ No newline at end of file +tdCases.addLinux(__file__, TDTestCase()) -- GitLab