Remove blank lines in the formatting of SELECT scripts for functions. Fixes #1690

This commit is contained in:
Surinder Kumar 2016-09-14 11:08:10 +01:00 committed by Dave Page
parent f2469d113c
commit 2ee631d6fc

View File

@ -1357,7 +1357,7 @@ It may have been removed by another user or moved to another schema.
"""
# Fetch the function definition.
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)
if not status:
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)):
formatted_arg = '\n\t<' + arg + '>'
name = name.replace(arg, formatted_arg)
name = name.replace(')', '\n)')
name = name.replace(')', '\n)')
sql = "SELECT {0}".format(name)