From 2e4da52221c9f231117b93c9709a36dc65b8c9b0 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 13 Feb 2011 19:32:00 -0500 Subject: - The Sequence() construct, when passed a MetaData() object via its 'metadata' argument, will be included in CREATE/DROP statements within metadata.create_all() and metadata.drop_all(), including "checkfirst" logic. [ticket:2055] --- test/dialect/test_postgresql.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/dialect/test_postgresql.py') diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py index 5d67e1921..1c7d0b16a 100644 --- a/test/dialect/test_postgresql.py +++ b/test/dialect/test_postgresql.py @@ -1285,8 +1285,10 @@ class MiscTest(TestBase, AssertsExecutionResults, AssertsCompiledSQL): def test_checksfor_sequence(self): meta1 = MetaData(testing.db) + seq = Sequence('fooseq') t = Table('mytable', meta1, Column('col1', Integer, - Sequence('fooseq'))) + seq)) + seq.drop() try: testing.db.execute('CREATE SEQUENCE fooseq') t.create(checkfirst=True) -- cgit v1.2.1