right now db_error() just returns the error number, but if a different module wants to report on what happened to the user, there's no general api for getting mysqli_error(), mysql_error(), etc.

Comments

tr’s picture

Status: Active » Closed (won't fix)

Drupal 5 is no longer supported. Drupal 6 will not be adding any new API functions. Drupal 7+ has an entirely new database API. If your need is not addressed by the new database API then please open a feature request against the current development version of Drupal, which is currently Drupal 8.