Fixed an issue where the mode is not shown in the properties dialog of functions/procedures if all the arguments are IN arguments. Fixes #5387

This commit is contained in:
Shubham Agarwal
2020-04-15 12:33:54 +05:30
committed by Akshay Joshi
parent 25553b11ed
commit 8654d6cf43
2 changed files with 4 additions and 2 deletions

View File

@@ -481,7 +481,8 @@ class FunctionView(PGChildNodeView, DataTypeReader, SchemaDiffObjectCompare):
"""
proargtypes = [ptype for ptype in data['proargtypenames'].split(",")] \
if data['proargtypenames'] else []
proargmodes = data['proargmodes'] if data['proargmodes'] else []
proargmodes = data['proargmodes'] if data['proargmodes'] else \
['i'] * len(proargtypes)
proargnames = data['proargnames'] if data['proargnames'] else []
proargdefaultvals = [ptype for ptype in
data['proargdefaultvals'].split(",")] \