summaryrefslogtreecommitdiff
path: root/test
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:31:58 -0400
commitf0ac7e20d8b05935cc5ffb176fab2a2f82ca40a4 (patch)
tree4443021070a203213d9929d9d6b5dde9857821c9 /test
parent9fa0088d438c0abed6027779990f8878c2ceecc4 (diff)
downloadsqlalchemy-f0ac7e20d8b05935cc5ffb176fab2a2f82ca40a4.tar.gz
added "system=True" to Column, so that we generally don't have to bother
with CreateColumn rules
Diffstat (limited to 'test')
-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 7736d2335..1c2ff037d 100644
--- a/test/sql/test_compiler.py
+++ b/test/sql/test_compiler.py
@@ -2727,6 +2727,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'