diff options
author | Dick Marinus <dick@mrns.nl> | 2018-04-29 19:55:37 +0200 |
---|---|---|
committer | Dick Marinus <dick@mrns.nl> | 2018-04-29 19:55:37 +0200 |
commit | 09b556604cf7ea871403a4d371aec1938586a857 (patch) | |
tree | 0394d2ec7fc7b1f0e85471437de35bc50b6dfb0f | |
parent | 4f19eb7e4bd9e28a8c834ce717f739e19b590caf (diff) |
Mark alter as a destructive querybugfix/alter_destructive
-rw-r--r-- | changelog.md | 1 | ||||
-rw-r--r-- | mycli/packages/parseutils.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md index 3768ad8..a190985 100644 --- a/changelog.md +++ b/changelog.md @@ -17,6 +17,7 @@ Bug Fixes: * Don't crash if the log/history file directories don't exist (Thanks: [Thomas Roten]). * Unquote dsn username and password (Thanks: [Dick Marinus]). * Output `Password:` prompt to stderr (Thanks: [ushuz]). +* Mark `alter` as a destructive query (Thanks: [Dick Marinus]). 1.16.0: diff --git a/mycli/packages/parseutils.py b/mycli/packages/parseutils.py index 13acdc3..25f1e2b 100644 --- a/mycli/packages/parseutils.py +++ b/mycli/packages/parseutils.py @@ -205,7 +205,7 @@ def queries_start_with(queries, prefixes): def is_destructive(queries): """Returns if any of the queries in *queries* is destructive.""" - keywords = ('drop', 'shutdown', 'delete', 'truncate') + keywords = ('drop', 'shutdown', 'delete', 'truncate', 'alter') return queries_start_with(queries, keywords) |