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

WordPress Trac noreply at wordpress.org
Thu Dec 20 07:02:10 UTC 2012


#21663: Use PDO for MySQL queries when PDO is available
------------------------------------+------------------------------
 Reporter:  scottconnerly           |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Database                |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+------------------------------

Comment (by kurtpayne):

 [[attachment:21663.4.patch]] has been tested with 3.6, unit tests, and
 installer code.  Seems to work in PDO and classic mysql modes.  This new
 version addresses a few bugs and allows for the user to define a driver
 via a WPDB_DRIVER constant in wp-config.php or db.php.

 I'm open to input.  There was some disagreement over whether interfaces
 was the right way to go in #6821.

 This model should give plugin authors the ability to define a new db
 driver in db.php, too.

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


More information about the wp-trac mailing list