summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects
diff options
context:
space:
mode:
authorHanno Schlichting <hanno@hannosch.eu>2015-12-14 08:14:35 +0100
committerMike Bayer <mike_mp@zzzcomputing.com>2015-12-22 11:56:33 -0500
commitc8cfb619f2fd3259d73e6ef0bb9c1a7f7989f0f7 (patch)
tree17d118534a2049805d33b5e60a8525507adae705 /lib/sqlalchemy/dialects
parent10735365a82f2ba4e1e982c6aca9f45e3e6ea9d0 (diff)
downloadsqlalchemy-c8cfb619f2fd3259d73e6ef0bb9c1a7f7989f0f7.tar.gz
Add new reserved words for MySQL 5.7.
(cherry picked from commit 03ee4bbda671f9d33dd2e990101840cdfde71e81)
Diffstat (limited to 'lib/sqlalchemy/dialects')
-rw-r--r--lib/sqlalchemy/dialects/mysql/base.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py
index 6626b3938..454e6e8cc 100644
--- a/lib/sqlalchemy/dialects/mysql/base.py
+++ b/lib/sqlalchemy/dialects/mysql/base.py
@@ -602,6 +602,8 @@ RESERVED_WORDS = set(
'get', 'io_after_gtids', 'io_before_gtids', 'master_bind', 'one_shot',
'partition', 'sql_after_gtids', 'sql_before_gtids', # 5.6
+ 'generated', 'optimizer_costs', 'stored', 'virtual', # 5.7
+
])
AUTOCOMMIT_RE = re.compile(