fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [6473] API: Default values for datatype bool


From: Sigurd Nes
Subject: [Fmsystem-commits] [6473] API: Default values for datatype bool
Date: Mon, 11 Oct 2010 21:14:59 +0000

Revision: 6473
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6473
Author:   sigurdne
Date:     2010-10-11 21:14:59 +0000 (Mon, 11 Oct 2010)
Log Message:
-----------
API: Default values for datatype bool

Modified Paths:
--------------
    trunk/phpgwapi/inc/class.schema_proc_mysql.inc.php

Modified: trunk/phpgwapi/inc/class.schema_proc_mysql.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.schema_proc_mysql.inc.php  2010-10-11 21:14:00 UTC 
(rev 6472)
+++ trunk/phpgwapi/inc/class.schema_proc_mysql.inc.php  2010-10-11 21:14:59 UTC 
(rev 6473)
@@ -144,7 +144,14 @@
                                case 'current_date':
                                case 'current_timestamp':
                                        return 'now()';
-
+                                       break;
+                               case 'true':
+                               case 'True':
+                                       return 1;
+                                       break;
+                               case 'false':
+                               case 'False':
+                                       return 0;
                        }
                        return "'" . $sDefault . "'";
                }




reply via email to

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