Make WordPress Core

Opened 9 years ago

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

Download all attachments as: .zip

Change History (4)

9 years ago

mysql_error() Patch

#1 @markjaquith
9 years ago

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

#2 @Nazgul
9 years ago

  • Keywords has-patch added

#3 @ryan
9 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.