This commit is contained in:
cpwu 2022-05-16 14:27:56 +08:00
parent c58fd6ec63
commit eb72eadb7d
1 changed files with 2 additions and 2 deletions

View File

@ -105,8 +105,8 @@ class TDTestCase:
return ""
def __group_condition(self, tbname, col, having = None):
return f" group by {tbname}.{col} having {having}" if having else f" group by {tbname}.{col} "
def __group_condition(self, col, having = None):
return f" group by {col} having {having}" if having else f" group by {col} "
def __single_sql(self, select_clause, from_clause, where_condition=None, group_condition=None):
return f"select {select_clause} from {from_clause} {where_condition} {group_condition}"