This commit is contained in:
cpwu 2022-05-30 14:20:36 +08:00
parent fe491e3e9e
commit b08f909425
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,8 @@ class TDTestCase:
col = col[4:-1] col = col[4:-1]
elif col.startswith("min"): elif col.startswith("min"):
col = col[4:-1] col = col[4:-1]
elif col.startswith("avg"):
col = col[4:-1]
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=""):