[wp-trac] [WordPress Trac] #3544: MySQL Errors not ignored from
other resources
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 9 11:54:29 GMT 2007
#3544: MySQL Errors not ignored from other resources
---------------------+------------------------------------------------------
Reporter: jgough | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.0.7
Component: General | Version:
Severity: minor | Keywords:
---------------------+------------------------------------------------------
In wp-db.php, mysql_error() is called without arguments. This means that
if there are other database resources then errors from these are detected
and reported, causing much confusion. Simple fix is to change this to
mysql_error($this->dbh) to only report WordPress errors. I've attached a
patch.
--
Ticket URL: <http://trac.wordpress.org/ticket/3544>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list