Update of /cvsroot/webware/Webware/MiddleKit/Run
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22316/Run
Modified Files:
SQLObjectStore.py
Log Message:
Make sure that BoolAttr.sqlForNonNone() returns an actual string.
Index: SQLObjectStore.py
===================================================================
RCS file: /cvsroot/webware/Webware/MiddleKit/Run/SQLObjectStore.py,v
retrieving revision 1.74
retrieving revision 1.75
diff -C2 -d -r1.74 -r1.75
*** SQLObjectStore.py 20 Feb 2005 02:25:49 -0000 1.74
--- SQLObjectStore.py 23 Feb 2005 01:07:20 -0000 1.75
***************
*** 837,840 ****
--- 837,846 ----
+ class BoolAttr:
+
+ def sqlForNonNone(self, value):
+ return value and '1' or '0' # MySQL and MS SQL will take 1 and 0 for bools
+
+
class ObjRefAttr:
|