diff options
author | Irina Truong <i.chernyavska@gmail.com> | 2018-06-17 14:21:30 -0700 |
---|---|---|
committer | Irina Truong <i.chernyavska@gmail.com> | 2018-06-17 14:21:30 -0700 |
commit | 4b06769002342d082568e4d0889b37f0d58b71ae (patch) | |
tree | b9c50df5a8d524deecaf4d900d3f0423e70eafa0 | |
parent | aa58fbf02886de359d92e1ef2d58dc8ee6852502 (diff) |
Can't add tuple and list.
-rw-r--r-- | pgcli/pgexecute.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pgcli/pgexecute.py b/pgcli/pgexecute.py index 95edc298..77528532 100644 --- a/pgcli/pgexecute.py +++ b/pgcli/pgexecute.py @@ -422,7 +422,7 @@ class PGExecute(object): raise RuntimeError('View {} does not exist.'.format(spec)) result = cur.fetchone() view_type = 'MATERIALIZED' if result[2] == 'm' else '' - return template.format(*result + [view_type]) + return template.format(*result + (view_type,)) def function_definition(self, spec): """Returns the SQL defining functions described by `spec` """ |