diff --git a/tests/pytest/topic/topicQuery.py b/tests/pytest/topic/topicQuery.py index 1ee3c3a4274d67a76fdae442b2d26a4de29392a2..396725fa57988a55bf46a7ecd4dec22ac71549ab 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())