Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#3544 closed defect (bug) (fixed)

MySQL Errors not ignored from other resources

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


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 8 years ago.
mysql_error() Patch

Download all attachments as: .zip

Change History (4)

@jgough8 years ago

mysql_error() Patch

comment:1 @markjaquith8 years ago

  • Milestone changed from 2.0.7 to 2.1
  • Version set to 2.0.6

comment:2 @Nazgul8 years ago

  • Keywords has-patch added

comment:3 @ryan8 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.