/** * returns the number of rows affected by last query * * @param object $link the connection object * @param bool $get_from_cache whether to retrieve from cache * * @return int|boolean */ public function affectedRows($link = null, $get_from_cache = true) { $link = $this->getLink($link); if ($link === false) { return false; } if ($get_from_cache) { return $GLOBALS['cached_affected_rows']; } else { return $this->_extension->affectedRows($link); } }
/** * returns the number of rows affected by last query * * @param object $link the connection object * @param bool $get_from_cache whether to retrieve from cache * * @return string|int */ public function affectedRows($link = null, $get_from_cache = true) { return $this->_extension->affectedRows($link, $get_from_cache); }