Exemplo n.º 1
0
 /**
  * Return the number of fields in the result.
  *
  * @throws \Pop\Db\Adapter\Exception
  * @return int
  */
 public function numFields()
 {
     if (isset($this->statement)) {
         $this->statement->store_result();
         return $this->statement->field_count;
     } else {
         if (isset($this->result)) {
             return $this->connection->field_count;
         } else {
             throw new Exception('Error: The database result resource is not currently set.');
         }
     }
 }
Exemplo n.º 2
0
 public function execute()
 {
     return parent::execute();
 }