mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-16 18:25:12 -06:00
Remove blank lines in the formatting of SELECT scripts for functions. Fixes #1690
This commit is contained in:
parent
f2469d113c
commit
2ee631d6fc
@ -1357,7 +1357,7 @@ It may have been removed by another user or moved to another schema.
|
|||||||
"""
|
"""
|
||||||
# Fetch the function definition.
|
# Fetch the function definition.
|
||||||
SQL = render_template("/".join([self.sql_template_path,
|
SQL = render_template("/".join([self.sql_template_path,
|
||||||
'get_definition.sql']), fnid=fnid, scid=scid)
|
'get_definition.sql']), fnid=fnid, scid=scid)
|
||||||
status, res = self.conn.execute_2darray(SQL)
|
status, res = self.conn.execute_2darray(SQL)
|
||||||
if not status:
|
if not status:
|
||||||
return internal_server_error(errormsg=res)
|
return internal_server_error(errormsg=res)
|
||||||
@ -1375,7 +1375,7 @@ It may have been removed by another user or moved to another schema.
|
|||||||
for arg in list(set(args)):
|
for arg in list(set(args)):
|
||||||
formatted_arg = '\n\t<' + arg + '>'
|
formatted_arg = '\n\t<' + arg + '>'
|
||||||
name = name.replace(arg, formatted_arg)
|
name = name.replace(arg, formatted_arg)
|
||||||
name = name.replace(')', '\n)')
|
name = name.replace(')', '\n)')
|
||||||
|
|
||||||
sql = "SELECT {0}".format(name)
|
sql = "SELECT {0}".format(name)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user