summaryrefslogtreecommitdiff
path: root/test/sql/test_constraints.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2009-12-06 19:51:10 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2009-12-06 19:51:10 +0000
commitf9cb6f5834fb1acf4460fd9bb6b72f8c76f8c36c (patch)
treed2ec1ec2f53858f927db3059cc0cf9ba6a8034d5 /test/sql/test_constraints.py
parent4ca12d76bd8580d56c4ec1f7ed95c0e37a4c281a (diff)
downloadsqlalchemy-f9cb6f5834fb1acf4460fd9bb6b72f8c76f8c36c.tar.gz
- reworked the DDL generation of ENUM and similar to be more platform agnostic.
Uses a straight CheckConstraint with a generic expression. Preparing for boolean constraint in [ticket:1589] - CheckConstraint now accepts SQL expressions, though support for quoting of values will be very limited. we don't want to get into formatting dates and such.
Diffstat (limited to 'test/sql/test_constraints.py')
-rw-r--r--test/sql/test_constraints.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sql/test_constraints.py b/test/sql/test_constraints.py
index 4ad52604d..55dcd3484 100644
--- a/test/sql/test_constraints.py
+++ b/test/sql/test_constraints.py
@@ -319,7 +319,7 @@ class ConstraintCompilationTest(TestBase, AssertsCompiledSQL):
constraint = CheckConstraint('a < b',name="my_test_constraint", deferrable=True,initially='DEFERRED', table=t)
self.assert_compile(
schema.AddConstraint(constraint),
- "ALTER TABLE tbl ADD CONSTRAINT my_test_constraint CHECK (a < b) DEFERRABLE INITIALLY DEFERRED"
+ "ALTER TABLE tbl ADD CONSTRAINT my_test_constraint CHECK (a < b) DEFERRABLE INITIALLY DEFERRED"
)
self.assert_compile(