|
[
Permalink
| « Hide
]
Sergey Stepanov added a comment - 27/Jan/16 01:09 PM
it turns out that it is already fixed in mainstream, should be closed.
following patch fixes this problem
diff --git a/fdb/schema.py b/fdb/schema.py index 1299dc9..8126416 100644 --- a/fdb/schema.py +++ b/fdb/schema.py @@ -2849,7 +2849,7 @@ class Procedure(BaseSchemaItem): result += 'RETURNS (%s)\n' % self.output_params[0].get_sql_definition() else: result += 'RETURNS (\n' - for p in self.input_params: + for p in self.output_params: result += ' %s%s\n' % (p.get_sql_definition(), '' if p.sequence+1 == self._attributes['RDB$PROCEDURE_OUTPUTS'] else ',') |