diff options
author | Rishi Ramraj <thereisnocowlevel@gmail.com> | 2018-05-15 00:51:44 -0400 |
---|---|---|
committer | Rishi Ramraj <thereisnocowlevel@gmail.com> | 2018-05-15 00:51:44 -0400 |
commit | ca63a54adaa7ef979d285d79e4558eba417425ec (patch) | |
tree | 92bb4ee461aff30c842de3eb75daa3d4f01561ba | |
parent | 12a47caab7eeeca438761c9c1f41a1586cb1eda1 (diff) |
Add special flag
-rw-r--r-- | pgcli/main.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pgcli/main.py b/pgcli/main.py index 1c04764f..bca5f0b1 100644 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -78,6 +78,7 @@ MetaQuery = namedtuple( 'db_changed', # True if any subquery changed the database 'path_changed', # True if any subquery changed the search path 'mutated', # True if any subquery executed insert/update/delete + 'special', # True if the query is a special command ]) MetaQuery.__new__.__defaults__ = ('', False, 0, False, False, False, False) @@ -741,7 +742,7 @@ class PGCli(object): all_success = False meta_query = MetaQuery(text, all_success, total, meta_changed, - db_changed, path_changed, mutated) + db_changed, path_changed, mutated, special) return output, meta_query |