You are here

function db_affected_rows in Drupal 6

Same name in this branch
  1. 6 includes/database.mysqli.inc \db_affected_rows()
  2. 6 includes/database.mysql.inc \db_affected_rows()
  3. 6 includes/database.pgsql.inc \db_affected_rows()
Same name and namespace in other branches
  1. 4 includes/database.mysqli.inc \db_affected_rows()
  2. 4 includes/database.mysql.inc \db_affected_rows()
  3. 4 includes/database.pgsql.inc \db_affected_rows()
  4. 5 includes/database.mysqli.inc \db_affected_rows()
  5. 5 includes/database.mysql.inc \db_affected_rows()
  6. 5 includes/database.pgsql.inc \db_affected_rows()

Determine the number of rows changed by the preceding query.

Related topics

14 calls to db_affected_rows()
cache_set in includes/cache.inc
Store data in the persistent cache.
filter_list_format in modules/filter/filter.module
Retrieve a list of filters for a certain format.
lock_acquire in includes/lock.inc
Acquire (or renew) a lock, but do not block if it fails.
lock_may_be_available in includes/lock.inc
Check if lock acquired by a different process may be available.
node_type_update_nodes in modules/node/node.module
Updates all nodes of one type to be of another type.

... See full list

File

includes/database.pgsql.inc, line 237
Database interface code for PostgreSQL database servers.

Code

function db_affected_rows() {
  global $last_result;
  return empty($last_result) ? 0 : pg_affected_rows($last_result);
}