[wp-trac] [WordPress Trac] #21663: Use PDO or mysqli for MySQL queries when available

WordPress Trac noreply at wordpress.org
Wed Feb 26 03:55:00 UTC 2014


#21663: Use PDO or mysqli for MySQL queries when available
------------------------------+------------------
 Reporter:  scottconnerly     |       Owner:
     Type:  task (blessed)    |      Status:  new
 Priority:  normal            |   Milestone:  3.9
Component:  Database          |     Version:  3.5
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------

Comment (by pento):

 attachment:21663.15.diff adds the `USE_EXT_MYSQL` define, and fixes some
 warnings caused by `wpdb::$dbh` not being empty when the connection fails
 using mysqli - mysqli doesn't set the handle to null like ext/mysql does.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21663#comment:205>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list