[wp-trac] [WordPress Trac] #21663: Use PDO or mysqli for MySQL queries when available
WordPress Trac
noreply at wordpress.org
Tue Feb 25 11:16:26 UTC 2014
#21663: Use PDO or mysqli for MySQL queries when available
------------------------------+------------------
Reporter: scottconnerly | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.9
Component: Database | Version: 3.5
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
------------------------------+------------------
Comment (by pento):
Yes! Maybe.
We want to make the method backwards compatible for when we move to a
driver system, I like the `WPDB_DRIVER` define from markoheijnen's WP DB
Driver plugin.
aaroncampbell, you [comment:146 mentioned previously] that we've had
problems with adding defines in the past - are there particular problems
we've had that you think would apply to this situation? Given how early
`$wpdb` is created, it seems a define would be the only practical way for
a site to be able to change the driver.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21663#comment:193>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list