]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Extract table names when comparing to nrte error
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Feb 2021 15:43:16 +0000 (10:43 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Feb 2021 15:59:35 +0000 (10:59 -0500)
commit38fb3d60284d35dc9446dd9a07f6ce48a177314b
treee9e07ae22e97115f2316cec9b5c001453564f8cd
parent8961c09c0364d018451d27ff7d5b9f65f1116bcc
Extract table names when comparing to nrte error

Fixed issue where the process of joining two tables could fail if one of
the tables had an unrelated, unresolvable foreign key constraint which
would raise :class:`_exc.NoReferenceError` within the join process, which
nonetheless could be bypassed to allow the join to complete. The logic
which tested the exception for signficance within the process would make
assumptions about the construct which would fail.

Fixes: #5952
Change-Id: I492dacd082ddcf8abb1310ed447a6ed734595bb7
(cherry picked from commit 498db831718cb5df213b1afdd2027878e0e72fd4)
doc/build/changelog/unreleased_13/5952.rst [new file with mode: 0644]
lib/sqlalchemy/sql/selectable.py
test/sql/test_selectable.py