提交 3a2d5bb5 编写于 作者: P Ping Xiao

test: update timestamp to avoid overlap

上级 804ac4fd
...@@ -40,8 +40,8 @@ class TDTestCase: ...@@ -40,8 +40,8 @@ class TDTestCase:
tdSql.checkData(2, 0, 'C1') tdSql.checkData(2, 0, 'C1')
tdSql.execute("insert into tb2(ts, c1) values(now, 1)") tdSql.execute("insert into tb2(ts, c1) values(now, 1)")
tdSql.execute("insert into tb2(ts, `C1`) values(now, 1)") tdSql.execute("insert into tb2(ts, `C1`) values(now + 1s, 1)")
tdSql.execute("insert into tb2(ts, c1, `C1`) values(now, 1, 2)") tdSql.execute("insert into tb2(ts, c1, `C1`) values(now + 2s, 1, 2)")
tdSql.query("select * from tb2") tdSql.query("select * from tb2")
tdSql.checkRows(3) tdSql.checkRows(3)
...@@ -76,8 +76,8 @@ class TDTestCase: ...@@ -76,8 +76,8 @@ class TDTestCase:
tdSql.checkData(2, 0, 'C1') tdSql.checkData(2, 0, 'C1')
tdSql.execute("insert into `TB2`(ts, c1) values(now, 1)") tdSql.execute("insert into `TB2`(ts, c1) values(now, 1)")
tdSql.execute("insert into `TB2`(ts, `C1`) values(now, 1)") tdSql.execute("insert into `TB2`(ts, `C1`) values(now + 1s, 1)")
tdSql.execute("insert into `TB2`(ts, c1, `C1`) values(now, 1, 2)") tdSql.execute("insert into `TB2`(ts, c1, `C1`) values(now + 2s, 1, 2)")
tdSql.query("select * from `TB2`") tdSql.query("select * from `TB2`")
tdSql.checkRows(3) tdSql.checkRows(3)
...@@ -113,8 +113,8 @@ class TDTestCase: ...@@ -113,8 +113,8 @@ class TDTestCase:
tdSql.checkData(3, 0, 't1') tdSql.checkData(3, 0, 't1')
tdSql.execute("insert into tt2(ts, c1) using `STB2` tags(1) values(now, 1)") tdSql.execute("insert into tt2(ts, c1) using `STB2` tags(1) values(now, 1)")
tdSql.execute("insert into tt2(ts, `C1`) using `STB2` tags(1) values(now, 1)") tdSql.execute("insert into tt2(ts, `C1`) using `STB2` tags(1) values(now + 1s, 1)")
tdSql.execute("insert into tt2(ts, c1, `C1`) using `STB2` tags(1) values(now, 1, 2)") tdSql.execute("insert into tt2(ts, c1, `C1`) using `STB2` tags(1) values(now + 2s, 1, 2)")
tdSql.query("select * from `STB2`") tdSql.query("select * from `STB2`")
tdSql.checkRows(3) tdSql.checkRows(3)
...@@ -142,7 +142,7 @@ class TDTestCase: ...@@ -142,7 +142,7 @@ class TDTestCase:
# cornor cases # cornor cases
tdSql.execute("alter table `STB2` add column `数量` int") tdSql.execute("alter table `STB2` add column `数量` int")
tdSql.execute("insert into tt3(ts, `数量`) using `STB2` tags(2) values(now, 1)") tdSql.execute("insert into tt3(ts, `数量`) using `STB2` tags(2) values(now + 3s, 1)")
tdSql.query("select * from tt3") tdSql.query("select * from tt3")
tdSql.checkRows(1) tdSql.checkRows(1)
tdSql.query("select ts `TS` from tt3") tdSql.query("select ts `TS` from tt3")
......
...@@ -81,7 +81,7 @@ class TDTestCase: ...@@ -81,7 +81,7 @@ class TDTestCase:
tdSql.query("select * from `STB`") tdSql.query("select * from `STB`")
tdSql.checkRows(1) tdSql.checkRows(1)
tdSql.execute("insert into `T2` using `STB` tags(1) values(now, 1)") tdSql.execute("insert into `T2` using `STB` tags(1) values(now + 1s, 1)")
tdSql.query("select * from `STB`") tdSql.query("select * from `STB`")
tdSql.checkRows(2) tdSql.checkRows(2)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册