Fix TypeError.

pull/3/head
Navnath Gadakh 2016-11-10 12:48:38 +00:00 committed by Dave Page
parent 36c909b1f9
commit 7b574b284d
1 changed files with 1 additions and 1 deletions

View File

@ -537,7 +537,7 @@ class TriggerView(PGChildNodeView):
'tfunctions' in result['rows'][0]:
data['tfunction'] = result['rows'][0]['tfunctions']
if data['custom_tgargs'] > 1:
if len(data['custom_tgargs']) > 1:
# We know that trigger has more than 1 argument, let's join them
# and convert it to string
data['tgargs'] = self._format_args(data['custom_tgargs'])