]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
forgot to add system to the copy() method
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 25 Aug 2013 16:33:37 +0000 (12:33 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 25 Aug 2013 16:33:37 +0000 (12:33 -0400)
lib/sqlalchemy/schema.py
test/sql/test_compiler.py

index 6cb024a11061dabcdbf8d94b6a1440127f3c8c83..9d90ff2a8f087379ac66fb51808c2a14aa4a408f 100644 (file)
@@ -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,
index 1c2ff037d3fcefac2681dec9d6f057563879c181..f35c6a7f84f30600e5f31b5b75120468710bf765 100644 (file)
@@ -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'