[wp-trac] [WordPress Trac] #23085: Calling $wpdb->query() when no connection exists causes mysql_error() to throw an error

WordPress Trac noreply at wordpress.org
Sun Jan 20 17:46:39 UTC 2013


#23085: Calling $wpdb->query() when no connection exists causes mysql_error() to
throw an error
------------------------------------+------------------------------
 Reporter:  mbijon                  |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Database                |     Version:  3.5
 Severity:  minor                   |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+------------------------------

Comment (by nacin):

 If `dbh` isn't a resource, isn't mysql_error() causing an error the least
 concern?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23085#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list