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

WordPress Trac noreply at wordpress.org
Tue Nov 12 07:40:32 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 Denis-de-Bernardy):

 Replying to [comment:123 kurtpayne]:
 > Replying to [comment:122 wonderboymusic]:
 > > 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.

 +1 with the idea of sticking to PDO only. It would be really sweet if this
 change opened the venue to make WP compatible with e.g. Postgres down the
 road, instead of saddling us with new technical debt.

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


More information about the wp-trac mailing list