function db_error in Drupal 6
Same name in this branch
- 6 includes/database.mysqli.inc \db_error()
- 6 includes/database.mysql.inc \db_error()
- 6 includes/database.pgsql.inc \db_error()
Same name and namespace in other branches
- 4 includes/database.mysqli.inc \db_error()
- 4 includes/database.mysql.inc \db_error()
- 4 includes/database.pgsql.inc \db_error()
- 5 includes/database.mysqli.inc \db_error()
- 5 includes/database.mysql.inc \db_error()
- 5 includes/database.pgsql.inc \db_error()
Determine whether the previous query caused an error.
Related topics
File
- includes/
database.pgsql.inc, line 217 - Database interface code for PostgreSQL database servers.
Code
function db_error() {
global $active_db;
return pg_last_error($active_db);
}