A "DB_ERROR" constant is defined by both PEAR DB and Drupal. This causes a conflict with for example CiviCRM, which uses PEAR DB. I would suggest that the constant be renamed something like "DRUPAL_DB_ERROR". I've attached patches for Drupal 6 and 7.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | d6-dberror.patch | 2.55 KB | mfb |
| d6-dberror.patch | 3.54 KB | mfb | |
| d7-dberror.patch | 1.49 KB | mfb |
Comments
Comment #1
damien tournoud commentedDB_ERROR is of no use for 7.x, and will be removed (by #304924: Extend drupal_error_handler to manage exceptions). Downgrading to 6.x.
Comment #2
dpearcefl commentedIs this still an issue using current Drupal 6?
Comment #4
mfbI don't hold out much hope of such old patches being committed, but still an issue..