Same name in this branch
- 6.x includes/database.pgsql.inc \db_affected_rows()
- 6.x includes/database.mysqli.inc \db_affected_rows()
- 6.x includes/database.mysql.inc \db_affected_rows()
Same name and namespace in other branches
- 4.6.x includes/database.pgsql.inc \db_affected_rows()
- 4.6.x includes/database.mysql.inc \db_affected_rows()
- 4.7.x includes/database.pgsql.inc \db_affected_rows()
- 4.7.x includes/database.mysqli.inc \db_affected_rows()
- 4.7.x includes/database.mysql.inc \db_affected_rows()
- 5.x includes/database.pgsql.inc \db_affected_rows()
- 5.x includes/database.mysqli.inc \db_affected_rows()
- 5.x includes/database.mysql.inc \db_affected_rows()
Determine the number of rows changed by the preceding query.
Related topics
3 calls to db_affected_rows()
- 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.
- system_update_6038 in modules/
system/ system.install - Ensure that "Account" is not used as a Profile category.
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);
}