예제 #1
0
 /**
  * returns the affected rows of a query
  *
  * @return mixed MDB2 Error Object or number of rows
  * @access public
  */
 function affectedRows()
 {
     if (function_exists('ibase_affected_rows')) {
         //PHP5 only
         $affected_rows = @ibase_affected_rows($this->connection);
         if ($affected_rows === false) {
             return $this->raiseError(MDB2_ERROR_NEED_MORE_DATA);
         }
         return $affected_rows;
     }
     return parent::affectedRows();
 }