[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5180 - trunk/gnue-common/src/schema/scripter/processors
From: |
reinhard |
Subject: |
r5180 - trunk/gnue-common/src/schema/scripter/processors |
Date: |
Fri, 27 Feb 2004 10:45:05 -0600 (CST) |
Author: reinhard
Date: 2004-02-27 10:45:04 -0600 (Fri, 27 Feb 2004)
New Revision: 5180
Modified:
trunk/gnue-common/src/schema/scripter/processors/postgresql.py
Log:
Use "TRUE" and "FALSE" for boolean values.
Modified: trunk/gnue-common/src/schema/scripter/processors/postgresql.py
===================================================================
--- trunk/gnue-common/src/schema/scripter/processors/postgresql.py
2004-02-27 16:28:29 UTC (rev 5179)
+++ trunk/gnue-common/src/schema/scripter/processors/postgresql.py
2004-02-27 16:45:04 UTC (rev 5180)
@@ -139,3 +139,19 @@
self._writeText ("\\encoding %s\n" % self.encoding)
+ # ===========================================================================
+ # Data transformation services
+ # ===========================================================================
+
+ # ---------------------------------------------------------------------------
+ # booleans are represented by "FALSE" and "TRUE"
+ # ---------------------------------------------------------------------------
+
+ def dts_boolean (self, gsValue):
+ """
+ Use 1 for TRUE and 0 for FALSE
+ """
+ if gsValue:
+ return "TRUE"
+ else:
+ return "FALSE"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5180 - trunk/gnue-common/src/schema/scripter/processors,
reinhard <=