提交 5e199efc 编写于 作者: C cpwu

fix case

上级 3cbe435e
...@@ -91,14 +91,16 @@ class TDTestCase: ...@@ -91,14 +91,16 @@ class TDTestCase:
return join_condition return join_condition
def __where_condition(self, col=None, tbname=None, query_conditon=None): def __where_condition(self, col=None, tbname=None, query_conditon=None):
if col.startswith("count"): if query_conditon:
col = col[6:-1] if query_conditon.startswith("count"):
elif col.startswith("max"): query_conditon = query_conditon[6:-1]
col = col[4:-1] elif query_conditon.startswith("max"):
elif col.startswith("sum"): query_conditon = query_conditon[4:-1]
col = col[4:-1] elif query_conditon.startswith("sum"):
elif col.startswith("min"): query_conditon = query_conditon[4:-1]
col = col[4:-1] elif query_conditon.startswith("min"):
query_conditon = query_conditon[4:-1]
if query_conditon: if query_conditon:
return f" where {query_conditon} is not null" return f" where {query_conditon} is not null"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册