Definition

db_error()
drupal/includes/database.pgsql.inc, line 135

Description

Determine whether the previous query caused an error.

Related topics

Namesort iconDescription
Database abstraction layerAllow the use of different database servers using the same code base.

Code

function db_error() {
  global $active_db;
  return pg_last_error($active_db);
}