Files
sqlalchemy/test/sql
Mike Bayer 8782469b78 Warn when sorted_tables is not actually sorting
A warning is emitted when making use of the :attr:`.MetaData.sorted_tables`
attribute as well as the :func:`_schema.sort_tables` function, and the
given tables cannot be correctly sorted due to a cyclic dependency between
foreign key constraints. In this case, the functions will no longer sort
the involved tables by foreign key, and a warning will be emitted. Other
tables that are not part of the cycle will still be returned in dependency
order. Previously, the sorted_table routines would return a collection that
would unconditionally omit all foreign keys when a cycle was detected, and
no warning was emitted.

Fixes: #5316
Change-Id: I14f72ccf39cb568bc77e8da16d0685718b2b9960
2020-05-07 19:56:32 -04:00
..
2019-11-08 15:40:25 -05:00
2020-02-22 11:02:56 -05:00
2020-04-09 12:55:23 -04:00
2020-03-24 14:05:19 -04:00