]> source.dussan.org Git - nextcloud-server.git/commitdiff
merge
authorRobin Appelman <icewind1991@gmail.com>
Mon, 5 Jul 2010 11:35:41 +0000 (13:35 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Mon, 5 Jul 2010 11:35:41 +0000 (13:35 +0200)
1  2 
inc/lib_base.php

index d946f565c8a8247d0361058ccce66190661915be,f991e40dfd806ed11dcc9a1b1e5177affa8bfc7d..67dbcb2eac93ac66fe0f1d83f7daba9b1668ff31
@@@ -301,7 -300,8 +301,9 @@@ class OC_UTIL 
   */
  class OC_DB {
        static private $DBConnection=false;
 +      static private $schema=false;
+       static private $affected=0;
+       static private $result=false;
        /**
        * connect to the datbase if not already connected
        */
                OC_DB::connect();
                if($CONFIG_DBTYPE=='sqlite'){//fix differences between sql versions
                        $cmd=str_replace('`','',$cmd);
 +              }elseif($CONFIG_DBTYPE=='pgsql'){
 +                      $cmd=str_replace('`','"',$cmd);
                }
-               $result=self::$DBConnection->query($cmd);
+               $result=self::$DBConnection->exec($cmd);
                if (PEAR::isError($result)) {
                        $entry='DB Error: "'.$result->getMessage().'"<br />';
                        $entry.='Offending command was: '.$cmd.'<br />';