From 3d2a2fb84dc21d084ec2c4d1f7f2691311a41567 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 10 Jul 2018 09:41:21 -0400 Subject: Drop default-related structures after the Table is dropped. Fixed bug where a :class:`.Sequence` would be dropped explicitly before any :class:`.Table` that refers to it, which breaks in the case when the sequence is also involved in a server-side default for that table, when using :meth:`.MetaData.drop_all`. The step which processes sequences to be dropped via non server-side column default functions is now invoked after the table itself is dropped. Change-Id: I185f2cc76d2011ad4dd3ba9bde5d8aef0ec335ae Fixes: #4300 (cherry picked from commit 532566ba1f28ff8a6afa6eacc10c59eb918501f6) --- test/engine/test_execute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/engine') diff --git a/test/engine/test_execute.py b/test/engine/test_execute.py index 30c41c6ee..84262dab2 100644 --- a/test/engine/test_execute.py +++ b/test/engine/test_execute.py @@ -917,7 +917,7 @@ class MockStrategyTest(fixtures.TestBase): eq_( re.findall(r'DROP (\w+)', buf.getvalue()), - ["SEQUENCE", "TABLE"] + ["TABLE", "SEQUENCE"] ) -- cgit v1.2.1