diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-08-25 12:33:37 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-08-25 12:33:37 -0400 |
commit | cd6cfe36d29fa0243a972e64dedc7e5676663748 (patch) | |
tree | d697a8fbce2fcb84f3298b60ff98335943b55e93 | |
parent | f0ac7e20d8b05935cc5ffb176fab2a2f82ca40a4 (diff) | |
download | sqlalchemy-cd6cfe36d29fa0243a972e64dedc7e5676663748.tar.gz |
forgot to add system to the copy() method
-rw-r--r-- | lib/sqlalchemy/schema.py | 1 | ||||
-rw-r--r-- | test/sql/test_compiler.py | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py index 6cb024a11..9d90ff2a8 100644 --- a/lib/sqlalchemy/schema.py +++ b/lib/sqlalchemy/schema.py @@ -1127,6 +1127,7 @@ class Column(SchemaItem, expression.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 1c2ff037d..f35c6a7f8 100644 --- a/test/sql/test_compiler.py +++ b/test/sql/test_compiler.py @@ -2736,6 +2736,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' |