From: Sean Bright Date: Fri, 15 Mar 2024 17:57:28 +0000 (-0400) Subject: mysql: Add new reserved words from MySQL 8.3. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03cedd7e2ff994636b915039b700858ae835c786;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git mysql: Add new reserved words from MySQL 8.3. Adds the following new keywords from MySQL 8.3: * `intersect` * `parallel` * `qualify` Sourced from https://dev.mysql.com/doc/refman/8.3/en/keywords.html Fixes: #11166 ### Description ### Checklist This pull request is: - [ ] A documentation / typographical / small typing error fix - Good to go, no issue or tests are needed - [x] A short code fix - please include the issue number, and create an issue if none exists, which must include a complete example of the issue. one line code fixes without an issue and demonstration will not be accepted. - Please include: `Fixes: #` in the commit message - please include tests. one line code fixes without tests will not be accepted. - [ ] A new feature implementation - please include the issue number, and create an issue if none exists, which must include a complete example of how the feature would look. - Please include: `Fixes: #` in the commit message - please include tests. **Have a nice day!** Closes: #11167 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/11167 Pull-request-sha: adc789cdc6ea66d73925e2a819ea70e60ec282e4 Change-Id: I4441389a4ebec02cdb8372051b6fab1280bcf198 --- diff --git a/lib/sqlalchemy/dialects/mysql/reserved_words.py b/lib/sqlalchemy/dialects/mysql/reserved_words.py index 009988a608..04764c17e7 100644 --- a/lib/sqlalchemy/dialects/mysql/reserved_words.py +++ b/lib/sqlalchemy/dialects/mysql/reserved_words.py @@ -282,6 +282,7 @@ RESERVED_WORDS_MARIADB = { } ) +# https://dev.mysql.com/doc/refman/8.3/en/keywords.html # https://dev.mysql.com/doc/refman/8.0/en/keywords.html # https://dev.mysql.com/doc/refman/5.7/en/keywords.html # https://dev.mysql.com/doc/refman/5.6/en/keywords.html @@ -403,6 +404,7 @@ RESERVED_WORDS_MYSQL = { "int4", "int8", "integer", + "intersect", "interval", "into", "io_after_gtids", @@ -468,6 +470,7 @@ RESERVED_WORDS_MYSQL = { "outfile", "over", "parse_gcol_expr", + "parallel", "partition", "percent_rank", "persist", @@ -476,6 +479,7 @@ RESERVED_WORDS_MYSQL = { "primary", "procedure", "purge", + "qualify", "range", "rank", "read",