]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
mysql: Add new reserved words from MySQL 8.3.
authorSean Bright <sean@seanbright.com>
Fri, 15 Mar 2024 17:57:28 +0000 (13:57 -0400)
committerFederico Caselli <cfederico87@gmail.com>
Fri, 15 Mar 2024 19:32:14 +0000 (20:32 +0100)
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
<!-- Provide a general summary of your proposed changes in the Title field above -->

### Description
<!-- Describe your changes in detail -->

### Checklist
<!-- go over following points. check them with an `x` if they do apply, (they turn into clickable checkboxes once the PR is submitted, so no need to do everything at once)

-->

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: #<issue number>` 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: #<issue number>` 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
(cherry picked from commit 03cedd7e2ff994636b915039b700858ae835c786)

lib/sqlalchemy/dialects/mysql/reserved_words.py

index 009988a60857e1ca4c33888e233667371820c9e8..04764c17e77d8f2a60f0a8c538d2997ae0eb3182 100644 (file)
@@ -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",