db_error

includes/database.pgsql.inc, line 186

Versions
4.6 – 6
db_error()

Determine whether the previous query caused an error.

Related topics

Code

<?php
function db_error() {
  global $active_db;
  return pg_last_error($active_db);
}
?>
 
 

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.