summaryrefslogtreecommitdiff
path: root/test/sql/test_compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-08-25 12:28:47 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-08-25 12:29:22 -0400
commit2452c49cc4d2244d0efef78e051eb65f79b7c712 (patch)
treef06a29dfe45e28861a3f05df2ae7530bf01bc9d2 /test/sql/test_compiler.py
parentb3aa03853fcbc35d930de953b51f9e2fe5ba3def (diff)
downloadsqlalchemy-2452c49cc4d2244d0efef78e051eb65f79b7c712.tar.gz
added "system=True" to Column, so that we generally don't have to bother
with CreateColumn rules
Diffstat (limited to 'test/sql/test_compiler.py')
-rw-r--r--test/sql/test_compiler.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py
index bdfcccb22..d52d80429 100644
--- a/test/sql/test_compiler.py
+++ b/test/sql/test_compiler.py
@@ -2800,6 +2800,15 @@ class DDLTest(fixtures.TestBase, AssertsCompiledSQL):
schema.CreateTable(t1).compile
)
+ def test_system_flag(self):
+ m = MetaData()
+ t = Table('t', m, Column('x', Integer),
+ Column('y', Integer, system=True),
+ Column('z', Integer))
+ self.assert_compile(
+ schema.CreateTable(t),
+ "CREATE TABLE t (x INTEGER, z INTEGER)"
+ )
class InlineDefaultTest(fixtures.TestBase, AssertsCompiledSQL):
__dialect__ = 'default'