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

WordPress Trac noreply at wordpress.org
Tue Jan 28 07:38:07 UTC 2014


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

Comment (by adegans):

 Replying to [comment:159 yandod]:
 > Instead of just abandoning mysql, Can WordPress have both implementation
 of mysql and mysqli.
 >
 > Then it will determine by like
 > define('WP_DB_USE_CLASSIC_MYSQL', true);
 >
 > Least mysqli will be blessed as modern default, but classic option still
 will be available.
 >

 Better yet - Just have a switch there
 define('WP_DB_TYPE', 'mysqli'); // mysql, mysqli, postgres (?) Whatever
 else kind of types you wanna support.

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


More information about the wp-trac mailing list