summaryrefslogtreecommitdiffstats
path: root/pgcli
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2018-05-15 10:06:50 -0400
committerAmjith Ramanujam <amjith.r@gmail.com>2018-05-15 10:06:50 -0400
commit5990e5541316367d9d1c9f89b0dfb7de15e80843 (patch)
tree5d3d9579dc448ba01f97acf5fad5088e0ee3b6e5 /pgcli
parentf8757c6f59b063786f7ab52479665cccb8ce21c7 (diff)
Restrict the offer to reconnect.
Diffstat (limited to 'pgcli')
-rw-r--r--pgcli/pgexecute.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pgcli/pgexecute.py b/pgcli/pgexecute.py
index 74084fe6..2158f909 100644
--- a/pgcli/pgexecute.py
+++ b/pgcli/pgexecute.py
@@ -346,7 +346,8 @@ class PGExecute(object):
"""
return (isinstance(e, psycopg2.OperationalError) and
(not e.pgcode or
- psycopg2.errorcodes.lookup(e.pgcode) != 'LOCK_NOT_AVAILABLE'))
+ psycopg2.errorcodes.lookup(e.pgcode) not in
+ ('LOCK_NOT_AVAILABLE', 'CANT_CHANGE_RUNTIME_PARAM')))
def execute_normal_sql(self, split_sql):
"""Returns tuple (title, rows, headers, status)"""