[wp-trac] [WordPress Trac] #21663: Use PDO or mysqli for MySQL queries when available (was: Use PDO for MySQL queries when PDO is available)
WordPress Trac
noreply at wordpress.org
Thu Oct 3 14:20:28 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 |
--------------------------------------------------+------------------
Changes (by nacin):
* milestone: Future Release => 3.8
Comment:
My take on the current work here: While we should look into adding this in
3.8, I think it needs to be a narrow approach. I dislike the idea of any
future improvements in wp-db.php needing to be written in two places, as
would occur if it were a second file that extends wpdb and overrides
methods. (Obviously, that makes the most sense for a plugin, but isn't
necessarily the way core should do it.)
I think a "driver" situation is pretty robust, but that the current
proposals are actually more robust than what we need to simply add mysqli
support. Based on some conversations I've had with marko and others,
targeting mysqli seems like a good first step, versus more general DB
abstraction. Then we can see how well that works, and maybe get to the
point where we have multiple drivers with an interface. I hope to engage
with scribu and marko at WordCamp Europe this weekend; maybe we can get
something committed to trunk once 3.7 is branched.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21663#comment:114>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list