add cases
This commit is contained in:
parent
2a5f4a3bc4
commit
b5172e8589
|
@ -104,11 +104,11 @@ class TDTestCase:
|
|||
## TD-25540
|
||||
tdSql.execute(f'create database db1')
|
||||
tdSql.execute(f'use db1')
|
||||
tdSql.execute(f"create table tb (ts timestamp, c0 int)")
|
||||
tdSql.execute(f"create table db1.tb (ts timestamp, c0 int)")
|
||||
tdSql.execute(f'insert into db1.tb values(now + 1h, 1)')
|
||||
|
||||
for func in {"NOW", "NOW()", "TODAY()", "1", "'1970-01-01 00:00:00'"}:
|
||||
tdSql.query(f"SELECT _wstart, count(*) FROM (SELECT ts, LAST(c0) FROM tb WHERE ts > {func}) interval(1d);")
|
||||
tdSql.query(f"SELECT _wstart, count(*) FROM (SELECT ts, LAST(c0) FROM db1.tb WHERE ts > {func}) interval(1d);")
|
||||
tdSql.checkRows(1)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue