From: Mike Bayer Date: Sun, 25 Aug 2013 16:33:37 +0000 (-0400) Subject: forgot to add system to the copy() method X-Git-Tag: rel_0_9_0b1~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00f3ca98ce24577f6a7fb40efd15bdb2d86acd26;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git forgot to add system to the copy() method Conflicts: lib/sqlalchemy/schema.py --- diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py index 5930df1240..ca83236c75 100644 --- a/lib/sqlalchemy/sql/schema.py +++ b/lib/sqlalchemy/sql/schema.py @@ -1122,6 +1122,7 @@ class Column(SchemaItem, ColumnClause): primary_key=self.primary_key, nullable=self.nullable, unique=self.unique, + system=self.system, quote=self.quote, index=self.index, autoincrement=self.autoincrement, diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py index d52d804296..a3ec3af84e 100644 --- a/test/sql/test_compiler.py +++ b/test/sql/test_compiler.py @@ -2809,6 +2809,13 @@ class DDLTest(fixtures.TestBase, AssertsCompiledSQL): schema.CreateTable(t), "CREATE TABLE t (x INTEGER, z INTEGER)" ) + m2 = MetaData() + t2 = t.tometadata(m2) + self.assert_compile( + schema.CreateTable(t2), + "CREATE TABLE t (x INTEGER, z INTEGER)" + ) + class InlineDefaultTest(fixtures.TestBase, AssertsCompiledSQL): __dialect__ = 'default'