]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add unique_constraint_name to MSSQL FK reflection
authorSean Dunn <sean.dunn@ihsmarkit.com>
Fri, 29 Jun 2018 14:26:57 +0000 (10:26 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 29 Jun 2018 14:54:00 +0000 (10:54 -0400)
commitff2a296291ca7ebc5995592e3f2c6d6f1e6df9ad
tree1431445a8ff0c3f162363d5a2ab5d1f6e526d2e9
parent1b4776a24dba132a300495466133a38e5807aa18
Add unique_constraint_name to MSSQL FK reflection

Fixed bug in MSSQL reflection where when two same-named tables in different
schemas had same-named primary key constraints, foreign key constraints
referring to one of the tables would have their columns doubled, causing
errors.   Pull request courtesy Sean Dunn.

Fixes: #4228
Change-Id: I7dabaaee0944e1030048826ba39fc574b0d63031
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/457
(cherry picked from commit ca94ea8ab583f8ab366ee5971bfc1bdd96e54cc9)
doc/build/changelog/unreleased_12/4228.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/mssql/information_schema.py
lib/sqlalchemy/testing/provision.py
test/dialect/mssql/test_reflection.py