From cd54930352b186a969d33568e5735a39d18c131b Mon Sep 17 00:00:00 2001 From: bryanchang0603 Date: Mon, 7 Jun 2021 11:32:35 +0800 Subject: [PATCH] adding comments to alter_test.py --- tests/pytest/alter/alter_keep.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/pytest/alter/alter_keep.py b/tests/pytest/alter/alter_keep.py index 00efa742b4..d38d9fa879 100644 --- a/tests/pytest/alter/alter_keep.py +++ b/tests/pytest/alter/alter_keep.py @@ -158,6 +158,9 @@ class TDTestCase: # tdSql.execute('alter database db keep 15,15,15') # tdSql.query('show databases') # tdSql.checkData(0,7,'15,15,15') + + # the following line should generate an error, but the insert was a success + # the time now-15d is out of range of now -10d tdSql.execute('insert into tb values (now-15d, 10)') tdSql.query('select * from tb') tdSql.checkRows(rowNum + 1)