From: Hanno Schlichting Date: Mon, 14 Dec 2015 07:14:35 +0000 (+0100) Subject: Add new reserved words for MySQL 5.7. X-Git-Tag: rel_1_0_11~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c8cfb619f2fd3259d73e6ef0bb9c1a7f7989f0f7;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Add new reserved words for MySQL 5.7. (cherry picked from commit 03ee4bbda671f9d33dd2e990101840cdfde71e81) --- diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py index 6626b39387..454e6e8cc6 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(