提交 6609a4af 编写于 作者: C cpwu

fix case

上级 5e199efc
...@@ -46,6 +46,8 @@ class TDTestCase: ...@@ -46,6 +46,8 @@ class TDTestCase:
f"rtrim( {tbname}.{char_col} )", f"rtrim( {tbname}.{char_col} )",
f"substr( {tbname}.{char_col}, 1 )", f"substr( {tbname}.{char_col}, 1 )",
f"count( {tbname}.{char_col} )", f"count( {tbname}.{char_col} )",
f"cast( {tbname}.{char_col} as nchar(3) )",
f"cast( {tbname}.{char_col} as nchar(8) )",
) )
) )
query_condition.extend( f"cast( {tbname}.{un_char_col} as binary(16) ) " for un_char_col in NUM_COL) query_condition.extend( f"cast( {tbname}.{un_char_col} as binary(16) ) " for un_char_col in NUM_COL)
...@@ -128,6 +130,8 @@ class TDTestCase: ...@@ -128,6 +130,8 @@ class TDTestCase:
return f" group by {col} having {having}" if having else f" group by {col} " return f" group by {col} having {having}" if having else f" group by {col} "
def __single_sql(self, select_clause, from_clause, where_condition="", group_condition=""): def __single_sql(self, select_clause, from_clause, where_condition="", group_condition=""):
if "on" not in from_clause and select_clause.split(".")[0] != from_clause.split(".")[0]:
return
return f"select {select_clause} from {from_clause} {where_condition} {group_condition}" return f"select {select_clause} from {from_clause} {where_condition} {group_condition}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册