commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r5108 - trunk/gnue-common/src/schema/scripter/processors


From: johannes
Subject: r5108 - trunk/gnue-common/src/schema/scripter/processors
Date: Fri, 13 Feb 2004 12:16:54 -0600 (CST)

Author: johannes
Date: 2004-02-13 12:16:53 -0600 (Fri, 13 Feb 2004)
New Revision: 5108

Modified:
   trunk/gnue-common/src/schema/scripter/processors/interbase.py
Log:
Fixed the CHECK-constraint for boolean columns.


Modified: trunk/gnue-common/src/schema/scripter/processors/interbase.py
===================================================================
--- trunk/gnue-common/src/schema/scripter/processors/interbase.py       
2004-02-13 17:13:42 UTC (rev 5107)
+++ trunk/gnue-common/src/schema/scripter/processors/interbase.py       
2004-02-13 18:16:53 UTC (rev 5108)
@@ -118,4 +118,5 @@
   # boolean becomes a number; TODO: add some check-constraints
   # ---------------------------------------------------------------------------
   def boolean (self, gsField):
-    return "smallint CHECK (VALUE IS NULL OR VALUE IN (0,1))"
+    return "smallint CHECK (%s IS NULL OR %s IN (0,1))" % \
+           (gsField.name, gsField.name)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]