You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromparseimportparsetemplate="{function_name}({parameters})"result=parse(template, self.signature, case_sensitive=False)
function_name=result["function_name"]
parameters_str=result["parameters"].strip()
parameters: List[str] =parameters_str.split(",")
# HERE parameters= [x[: len(x.lower().split("default")[0])] forxinparameters]
# Output# [['arr jsonb'], [' ', "_arr jsonb = '[]'"]] # Note: the leading space gets split into its own element
The text was updated successfully, but these errors were encountered:
olirice
changed the title
Function signature parsing in drop statement
Function signature parsing in drop statement fails if param name includes "default"
May 24, 2021
alembic_utils/src/alembic_utils/pg_function.py
Line 92 in 2e9cce2
This breaks when when a parameter name includes the word "default"
e.g.
The text was updated successfully, but these errors were encountered: