提交 e5683608 编写于 作者: G Ganlin Zhao

Merge branch 'develop' into feature/TD-13970

上级 af92dc63
...@@ -82,19 +82,6 @@ class TDTestCase: ...@@ -82,19 +82,6 @@ class TDTestCase:
res = tdSql.getData(0, 0) res = tdSql.getData(0, 0)
tdSql.checkEqual(str(res), "2020-02-02 00:00:00") tdSql.checkEqual(str(res), "2020-02-02 00:00:00")
#TIME RELATED functions
tdSql.query('select to_unixtimestamp("2020-02-02") from tb')
tdSql.checkRows(1)
tdSql.checkData(0, 0, 1580572800000)
tdSql.query('select timetruncate("2020-02-02", 1h) from tb;')
tdSql.checkRows(1)
res = tdSql.getData(0, 0)
tdSql.checkEqual(str(res), "2020-02-02 00:00:00")
tdSql.query('select timediff("2020-02-02", "2020-02-03", 1h) from tb;')
tdSql.checkRows(1)
tdSql.checkData(0, 0, 24)
tdSql.execute('drop database db') tdSql.execute('drop database db')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册