mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Add miissing braces to reverse engineered SQL header block for Functions. Fixes #2246
This commit is contained in:
committed by
Dave Page
parent
461086c17d
commit
145983d544
@@ -996,16 +996,16 @@ class FunctionView(PGChildNodeView, DataTypeReader):
|
||||
func_def=name_with_default_args,
|
||||
query_for="sql_panel")
|
||||
|
||||
sql_header = u"""-- {0}: {1}{2}
|
||||
sql_header = u"""-- {0}: {1}({2})
|
||||
|
||||
-- DROP {0} {1}{2};
|
||||
-- DROP {0} {1}({2});
|
||||
|
||||
""".format(object_type.upper(),
|
||||
self.qtIdent(
|
||||
self.conn,
|
||||
resp_data['pronamespace'],
|
||||
resp_data['proname']),
|
||||
resp_data['proargtypenames'])
|
||||
resp_data['proargtypenames'].lstrip('(').rstrip(')'))
|
||||
|
||||
SQL = sql_header + func_def
|
||||
SQL = re.sub('\n{2,}', '\n\n', SQL)
|
||||
|
||||
Reference in New Issue
Block a user