From f9cb6f5834fb1acf4460fd9bb6b72f8c76f8c36c Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 6 Dec 2009 19:51:10 +0000 Subject: - 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. --- test/sql/test_constraints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/sql/test_constraints.py') 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( -- cgit v1.2.1