summaryrefslogtreecommitdiff
path: root/test/engine
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2018-07-10 09:41:21 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2018-07-10 22:39:09 -0400
commit3d2a2fb84dc21d084ec2c4d1f7f2691311a41567 (patch)
tree4f786cf3cb718ccff39289e062019b5e03ec8eb8 /test/engine
parent5a7667e5807deb19f5012ef1a07f6be95f7d580a (diff)
downloadsqlalchemy-3d2a2fb84dc21d084ec2c4d1f7f2691311a41567.tar.gz
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)
Diffstat (limited to 'test/engine')
-rw-r--r--test/engine/test_execute.py2
1 files changed, 1 insertions, 1 deletions
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"]
)