提交 727755ee 编写于 作者: wmmhello's avatar wmmhello

[TD-12909]<fix> fix sql error

上级 fa628f77
...@@ -86,17 +86,19 @@ class TDTestCase: ...@@ -86,17 +86,19 @@ class TDTestCase:
tdSql.query("select count(*) from st where hostname between 'abc' and 'def'") tdSql.query("select count(*) from st where hostname between 'abc' and 'def'")
tdSql.error("select count(*) from st where hostname between 1 and 2 or sum(1)") tdSql.error("select count(*) from st where hostname between 1 and 2 or sum(1)")
tdSql.execute("select count(*) from st where hostname < max(123)") tdSql.error("select count(*) from st where hostname < max(123)")
tdSql.execute("select count(*) from st where hostname < max('abc')") tdSql.error("select count(*) from st where hostname < max('abc')")
tdSql.execute("select count(*) from st where hostname < max(min(123))") tdSql.error("select count(*) from st where hostname < max(min(123))")
tdSql.execute("select count(*) from st where hostname < sum('abc')") tdSql.error("select count(*) from st where hostname < sum('abc')")
tdSql.execute("select count(*) from st where hostname < sum(min(123))") tdSql.error("select count(*) from st where hostname < sum(min(123))")
tdSql.execute("select count(*) from st where hostname < diff('abc')") tdSql.error("select count(*) from st where hostname < diff('abc')")
tdSql.execute("select count(*) from st where hostname < diff(min(123))") tdSql.error("select count(*) from st where hostname < diff(min(123))")
tdSql.error("select count(*) from st where hostname < tbname")
tdSql.error("select count(*) from st where ts > 0 and tbname in ('d1', 'd2') and tbname-2")
def stop(self): def stop(self):
tdSql.close() tdSql.close()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册