Make WordPress Core

Opened 19 years ago

Closed 18 years ago

Last modified 17 months ago

#3544 closed defect (bug) (fixed)

MySQL Errors not ignored from other resources

Reported by: jgough's profile jgough Owned by:
Milestone: 2.1 Priority: normal
Severity: minor Version: 2.0.6
Component: General Keywords: has-patch
Focuses: 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 19 years ago.
mysql_error() Patch

Download all attachments as: .zip

Change History (4)

@jgough
19 years ago

mysql_error() Patch

#1 @markjaquith
19 years ago

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

#2 @Nazgul
19 years ago

  • Keywords has-patch added

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