phpgroupware-cvs
[Top][All Lists]
Advanced

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

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


From: Sigurd Nes
Subject: [Phpgroupware-cvs] phpgwapi/inc class.db.inc.php
Date: Wed, 15 Mar 2006 14:15:40 +0000

CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Branch:         
Changes by:     Sigurd Nes <address@hidden>     06/03/15 14:15:40

Modified files:
        inc            : class.db.inc.php 

Log message:
        Get metadata when asked for

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/phpgwapi/inc/class.db.inc.php.diff?tr1=1.20&tr2=1.21&r1=text&r2=text

Patches:
Index: phpgwapi/inc/class.db.inc.php
diff -u phpgwapi/inc/class.db.inc.php:1.20 phpgwapi/inc/class.db.inc.php:1.21
--- phpgwapi/inc/class.db.inc.php:1.20  Tue Feb 21 14:07:19 2006
+++ phpgwapi/inc/class.db.inc.php       Wed Mar 15 14:15:40 2006
@@ -9,7 +9,7 @@
        * @link http://www.sanisoft.com/phplib/manual/DB_sql.php
        * @package phpgwapi
        * @subpackage database
-       * @version $Id: class.db.inc.php,v 1.20 2006/02/21 14:07:19 skwashd Exp 
$
+       * @version $Id: class.db.inc.php,v 1.21 2006/03/15 14:15:40 sigurdne 
Exp $
        */
 
        if (empty($GLOBALS['phpgw_info']['server']['db_type']))
@@ -520,7 +520,21 @@
                */  
                function metadata($table = '',$full = false)
                {
-                       echo "depi: metadata";
+                       if($this->debug)
+                       {
+                               echo "depi: metadata";
+                       }
+                       
+                       if(!$this->adodb->IsConnected())
+                       {
+                               $this->connect();
+                       }
+                       if(!($return =& 
$this->adodb->MetaColumns($table,$full)))
+                       {
+                               $return = array();
+                       }
+                       return $return;
+                       
                        /*
                         * Due to compatibility problems with Table we changed 
the behavior
                         * of metadata();




reply via email to

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