Opened 6 years ago

Closed 6 years ago

#3544 closed defect (bug) (fixed)

MySQL Errors not ignored from other resources

Reported by: jgough Owned by: anonymous
Priority: normal Milestone: 2.1
Component: General Version: 2.0.6
Severity: minor Keywords: has-patch
Cc:

Description

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.

Attachments (1)

mysql_error_patch.diff (701 bytes) - added by jgough 6 years ago.
mysql_error() Patch

Download all attachments as: .zip

Change History (4)

jgough6 years ago

mysql_error() Patch

  • Milestone changed from 2.0.7 to 2.1
  • Version set to 2.0.6
  • Keywords has-patch added

comment:3   ryan6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4741]) Pass resource to mysql_error. Props jgough. fixes #3544

Note: See TracTickets for help on using tickets.