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

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 24 18:29:29 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):

 Patch updated for [21420].  Currently, the mysql driver is the only one
 that works with the new config options.  The mysql, mysqli, and PDO
 drivers all have different ways to specify their options, so a single
 constant in wp-config.php won't work going forward with this patch.

 Also, I'm not sure if there's a new_link flag for PDO/mysqli.  Isn't this
 default unless specify persistent connections?  Perhaps this is
 addressable in the drivers ...

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


More information about the wp-trac mailing list