[drupal-devel] [bug] _db_query() shows each query error twice
Dries
drupal-devel at drupal.org
Fri Apr 8 11:41:12 UTC 2005
Issue status update for http://drupal.org/node/19942
Project: Drupal
Version: cvs
Component: database system
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: danielc
Updated by: Dries
Status: patch
How can we reproduce this? No matter what I do, I only see each error
reported once.
(We try to avoid the use of @ to surpress errors.)
Dries
Previous comments:
------------------------------------------------------------------------
April 4, 2005 - 06:27 : danielc
Attachment: http://drupal.org/files/issues/database.silence.query.diff (1.2 KB)
In _db_query(), when a query error happens, the error messages are
displayed twice. First at the point of the pg_query()/mysql_query()
call and then at the track_errors() call. Since there is an error
handling/reporting process in place, the query calls should suppress
error output by placing @'s in front of them. The attached patch does
that for both the database.mysql.inc and database.pgsql.inc files.
------------------------------------------------------------------------
April 8, 2005 - 02:43 : danielc
Can this please be applied to 4-6 and HEAD?
More information about the drupal-devel
mailing list