提交 49e0643b 编写于 作者: B bryanchang0603

[TD-4463] update boundary case and error case

上级 f74818a3
......@@ -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')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册