phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/inc class.schema_proc_pgsql.inc.php


From: Sigurd Nes
Subject: [Phpgroupware-cvs] phpgwapi/inc class.schema_proc_pgsql.inc.php
Date: Fri, 23 Feb 2007 10:45:23 +0000

CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Changes by:     Sigurd Nes <sigurdne>   07/02/23 10:45:22

Modified files:
        inc            : class.schema_proc_pgsql.inc.php 

Log message:
        notice, datatype bolean

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.schema_proc_pgsql.inc.php?cvsroot=phpgwapi&r1=1.20&r2=1.21

Patches:
Index: class.schema_proc_pgsql.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/inc/class.schema_proc_pgsql.inc.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- class.schema_proc_pgsql.inc.php     2 Jan 2007 14:53:02 -0000       1.20
+++ class.schema_proc_pgsql.inc.php     23 Feb 2007 10:45:22 -0000      1.21
@@ -12,7 +12,7 @@
        * @license http://www.fsf.org/licenses/gpl.html GNU General Public 
License
        * @package phpgwapi
        * @subpackage database
-       * @version $Id: class.schema_proc_pgsql.inc.php,v 1.20 2007/01/02 
14:53:02 sigurdne Exp $
+       * @version $Id: class.schema_proc_pgsql.inc.php,v 1.21 2007/02/23 
10:45:22 sigurdne Exp $
        * @link http://www.greatbridge.org/project/phppgadmin
        * @internal SQL for table properties taken from phpPgAdmin Version 2.2.1
        */
@@ -32,6 +32,7 @@
                var $fk = array();
                var $ix = array();
                var $uc = array();
+               var $indexes_sql = array();
 
                function schema_proc_pgsql()
                {
@@ -96,6 +97,9 @@
                                                $sTranslated =  'text';
                                        }
                                        break;
+                               case 'bool':
+                                       $sTranslated = 'boolean';
+                                       break;
                        }
                        return $sTranslated;
                }
@@ -171,6 +175,9 @@
                                case 'date':
                                        $sTranslated = "'type' => '$sType'";
                                        break;
+                               case 'boolean':
+                                       $sTranslated = "'type' => 'bool'";
+                                       break;
                        }
                        return $sTranslated;
                }
@@ -634,7 +641,7 @@
                                $result = !!($oProc->m_odb->query($query));
                                if($result==True)
                                {
-                                       if ($DEBUG)
+                                       if (isset($this->indexes_sql) && $DEBUG)
                                        {
                                                echo  '<pre>';
                                                print_r($this->indexes_sql);




reply via email to

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