summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIrina Truong <i.chernyavska@gmail.com>2018-06-17 14:21:30 -0700
committerIrina Truong <i.chernyavska@gmail.com>2018-06-17 14:21:30 -0700
commit4b06769002342d082568e4d0889b37f0d58b71ae (patch)
treeb9c50df5a8d524deecaf4d900d3f0423e70eafa0
parentaa58fbf02886de359d92e1ef2d58dc8ee6852502 (diff)
Can't add tuple and list.
-rw-r--r--pgcli/pgexecute.py2
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` """