]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Correct for MySQL 8.0 table and schema names in FK reflection
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 29 Jul 2019 18:07:21 +0000 (14:07 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 29 Jul 2019 18:13:26 +0000 (14:13 -0400)
commit4cc40b0ad698245ec7d6ad6d9ee081fcf16d33ec
tree969b3988a4c8e17c05ef8786710ac5d3e424d4ca
parenta2418eb6933a2632fce76fb8023bbf62a570d496
Correct for MySQL 8.0 table and schema names in FK reflection

Added another fix for an upstream MySQL 8 issue where a case sensitive
table name is reported incorrectly in foreign key constraint reflection,
this is an extension of the fix first added for :ticket:`4344` which
affects a case sensitive column name.  The new issue occurs through MySQL
8.0.17, so the general logic of the 88718 fix remains in place.

.. seealso::

    https://bugs.mysql.com/bug.php?id=96365 - upstream bug

Fixes: #4751
Change-Id: I391903565db919b85b6b3c62c28f4b90ee596135
(cherry picked from commit 9a6654e3af74710b55feb6b5b0218dc767d7013b)
doc/build/changelog/unreleased_13/4751.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
test/dialect/mysql/test_reflection.py