]> 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:52:47 +0000 (10:52 -0400)
commitca94ea8ab583f8ab366ee5971bfc1bdd96e54cc9
treea32d239376d13586f8e16db4f123c7a6c6573962
parentb694a309e89e7c3e57e83dd10e9a75c66672c396
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
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