Ejemplo n.º 1
0
 public function real_query($query, $unbuffered = 0)
 {
     if (!parent::real_query($query)) {
         throw new Poodle_SQL_Exception($this->error, $this->errno, $query);
     }
     if ($this->field_count) {
         # SELECT, SHOW, DESCRIBE
         return $unbuffered ? $this->use_result() : $this->store_result();
     }
     # INSERT, UPDATE, DELETE
     return true;
 }