summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects
diff options
context:
space:
mode:
authorHanno Schlichting <hanno@hannosch.eu>2017-02-28 11:10:57 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2017-02-28 11:11:58 -0500
commitb2820e190f14a39730da0c1f2ccae6aa32a455f0 (patch)
treea6a07c8eef1321a9a7ccadc9dec9b2e5e166bc08 /lib/sqlalchemy/dialects
parentfe1cabb88a060378c839bda53992882f67b525c7 (diff)
downloadsqlalchemy-b2820e190f14a39730da0c1f2ccae6aa32a455f0.tar.gz
Add new reserved words for MySQL 8.0 (beta).
Based on https://dev.mysql.com/doc/refman/8.0/en/keywords.html#table-keywords-new-8.0 Change-Id: I128c93520e57331e0ec4d40b0c0e752bf9b982d9 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/346
Diffstat (limited to 'lib/sqlalchemy/dialects')
-rw-r--r--lib/sqlalchemy/dialects/mysql/base.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py
index 8b0d00a63..822e93282 100644
--- a/lib/sqlalchemy/dialects/mysql/base.py
+++ b/lib/sqlalchemy/dialects/mysql/base.py
@@ -676,6 +676,9 @@ RESERVED_WORDS = set(
'generated', 'optimizer_costs', 'stored', 'virtual', # 5.7
+ 'admin', 'except', 'grouping', 'of', 'persist', 'recursive',
+ 'role', # 8.0
+
])
AUTOCOMMIT_RE = re.compile(