Пример #1
0
 function next()
 {
     // XXX does processing stop at first error?
     if ($this->more === null) {
         $this->more = $this->dblink->more_results() ? $this->dblink->next_result() : -1;
     }
     if ($this->more === -1) {
         return false;
     } else {
         if ($this->more) {
             $result = $this->dblink->store_result();
             $this->more = null;
         } else {
             $result = false;
         }
     }
     return Dbl::do_result($this->dblink, $this->flags, $this->qstr, $result);
 }