Esempio n. 1
0
 public function prepare(&$statement, &$options)
 {
     if (!($st = parent::prepare($statement, $options))) {
         return false;
     }
     $result = oci_parse($this->link, $this->prepared);
     if (!$result) {
         $this->set_driver_error(null, PDO::ERRMODE_SILENT, 'prepare');
         return false;
     }
     $st->_set_result($result);
     return $st;
 }
Esempio n. 2
0
 public function prepare(&$statement, &$options)
 {
     if (!($st = parent::prepare($statement, $options))) {
         return false;
     }
     $result_name = uniqid('phpdo_');
     $result = @pg_prepare($this->link, $result_name, $this->prepared);
     if (!$result) {
         $this->set_driver_error(null, PDO::ERRMODE_SILENT, 'prepare');
         return false;
     }
     $st->_set_result($result, $result_name);
     return $st;
 }