Skip to content

Commit

Permalink
🐛 Fixes kayak#791
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanderlee committed Feb 21, 2024
1 parent 8841520 commit 8a81347
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pypika/terms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ def get_special_params_sql(self, **kwargs: Any) -> Any:
def get_arg_sql(arg, **kwargs):
return arg.get_sql(with_alias=False, **kwargs) if hasattr(arg, "get_sql") else str(arg)

def get_function_sql(self, **kwargs: Any) -> str:
def get_function_sql(self, subquery: Any = None, with_alias: Any = None, **kwargs: Any) -> str:
special_params_sql = self.get_special_params_sql(**kwargs)

return "{name}({args}{special})".format(
Expand All @@ -1333,7 +1333,9 @@ def get_sql(self, **kwargs: Any) -> str:
dialect = kwargs.pop("dialect", None)

# FIXME escape
function_sql = self.get_function_sql(with_namespace=with_namespace, quote_char=quote_char, dialect=dialect)
function_sql = self.get_function_sql(
with_namespace=with_namespace, quote_char=quote_char, dialect=dialect, **kwargs
)

if self.schema is not None:
function_sql = "{schema}.{function}".format(
Expand Down

0 comments on commit 8a81347

Please sign in to comment.