*/
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 />';