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

WordPress Trac noreply at wordpress.org
Sat Nov 9 00:21:16 UTC 2013


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

Comment (by kurtpayne):

 Replying to [comment:122 wonderboymusic]:
 > Can someone throw up their patch

 https://github.com/markoheijnen/wp-db-driver
 http://wordpress.org/plugins/wp-db-driver/

 > or summarize the approach that was decided?

 No final decision as far as I know.  The current "driver" idea as
 implemented above prizes compatibility by supporting mysql, mysqli, and
 pdo possible (thus increasing maintenance costs).  It increases cost with
 no real access to the "candy" parts of PDO or mysqli.  It may be smarter
 to do a hard cut and say "okay, we're now PDO now" and make wp-db only
 support pdo.

 > It would suck if this missed the boat again. The `Deprecated:
 mysql_connect()` notice everywhere in PHP 5.5 is harshing my mellow

 Agreed.

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


More information about the wp-trac mailing list