Exemple #1
0
 protected function Exec($query)
 {
     switch ($this->_driver) {
         case 'SQLITE':
             try {
                 $this->_db->queryExec($query);
             } catch (SQLiteException $x) {
                 Sobi::Error('cache', sprintf('SQLite error: %s', $x->getMessage()), SPC::WARNING, 0, __LINE__, __FILE__);
             }
             break;
         case 'PDO':
             $this->_db->exec($query);
             break;
     }
 }