]> 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:58:06 +0000 (10:58 -0500)
commit498db831718cb5df213b1afdd2027878e0e72fd4
tree4a7ec0f0db37ba2d57f93c4ec49776750d022e01
parentf41b9cbcdb0b6116cc3e2d15f53983516d82b06d
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
doc/build/changelog/unreleased_13/5952.rst [new file with mode: 0644]
lib/sqlalchemy/sql/selectable.py
test/sql/test_selectable.py