diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2018-05-15 10:06:50 -0400 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2018-05-15 10:06:50 -0400 |
commit | 5990e5541316367d9d1c9f89b0dfb7de15e80843 (patch) | |
tree | 5d3d9579dc448ba01f97acf5fad5088e0ee3b6e5 | |
parent | f8757c6f59b063786f7ab52479665cccb8ce21c7 (diff) |
Restrict the offer to reconnect.
-rw-r--r-- | pgcli/pgexecute.py | 3 |
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)""" |