[TD-4463] update boundary case and error case

This commit is contained in:
bryanchang0603 2021-06-02 16:02:06 +08:00
parent f74818a3dd
commit 49e0643bf2
1 changed files with 6 additions and 5 deletions

View File

@ -41,16 +41,17 @@ class TDTestCase:
## the following sql will not raise error, but will not cause error either
# based on Li Chuang's explaination, <= 0 will not cause keep>days error
tdSql.execute('alter database db keep -10')
tdSql.query('show databases')
tdSql.checkData(0,7,'50,50,50')
tdSql.execute('alter database db keep 0')
# tdSql.error('alter database db keep -10')
# tdSql.query('show databases')
# tdSql.checkData(0,7,'50,50,50')
# tdSql.error('alter database db keep 0')
# tdSql.error('alter database db keep 0.1')
tdSql.error('alter database db keep 10.1')
tdSql.query('show databases')
tdSql.checkData(0,7,'50,50,50')
##TODO: test keep keep hot alter, cannot be tested for now as test.py's output
## is inconsistent with the actual output.
# tdSql.execute('insert into tb values (now, 10)')
# tdSql.execute('insert into tb values (now + 10m, 10)')
# tdSql.query('select * from tb')