db_affected_rows

Versions
4.6 – 6
db_affected_rows()

Determine the number of rows changed by the preceding query.

Related topics

▾ 6 functions call db_affected_rows()

cache_set in includes/cache.inc
Store data in the persistent cache.
node_type_update_nodes in modules/node/node.module
Updates all nodes of one type to be of another type.
search_update_totals in modules/search/search.module
This function is called on shutdown to ensure that search_total is always up to date (even if cron times out or otherwise fails).
sess_write in includes/session.inc
statistics_exit in modules/statistics/statistics.module
Implementation of hook_exit().
user_set_authmaps in modules/user/user.module

Code

includes/database.pgsql.inc, line 243

<?php
function db_affected_rows() {
  global $last_result;
  return pg_affected_rows($last_result);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.