]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Don't require space after MySQL pk comment
authorDaniël van Eeden <git@myname.nl>
Wed, 23 Jun 2021 14:00:43 +0000 (10:00 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 28 Jun 2021 13:39:59 +0000 (09:39 -0400)
commit919763b43ce334be621f29a4b9fd3edd7e6c6927
treefd02fde30c80b30bcc87399a640e6291437b9755
parent2f909a6b127e3ff8f8d411db28094804c8b9a2df
Don't require space after MySQL pk comment

Made a small adjustment in the table reflection feature of the MySQL
dialect to accommodate for alternate MySQL-oriented databases such as TiDB
which include their own "comment" directives at the end of a constraint
directive within "CREATE TABLE" where the format doesn't have the
additional space character after the comment, in this case the TiDB
"clustered index" feature. Pull request courtesy Daniël van Eeden.

Fixes: #6659
Closes: #6660
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/6660
Pull-request-sha: 98791a441b2e3d26aa7cef9d3e2907fac113e30f

Change-Id: I20d206e0cdb809e4c6997b87159edf41249f7cd9
doc/build/changelog/unreleased_14/6659.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/reflection.py
test/dialect/mysql/test_reflection.py