]> 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:35:06 +0000 (12:35 -0400)
Conflicts:
lib/sqlalchemy/schema.py

lib/sqlalchemy/sql/schema.py
test/sql/test_compiler.py

index 5930df1240fb00113243ddd88d86d4e263794b0f..ca83236c756169308f44e5564d993a4d94866054 100644 (file)
@@ -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,
index d52d8042968141406113961d0694f3f0d95475dd..a3ec3af84e65f1bc783b66d0305a010ba3ba91e0 100644 (file)
@@ -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'