[wp-trac] [WordPress Trac] #21663: Use PDO or mysqli for MySQL queries when available
WordPress Trac
noreply at wordpress.org
Sat Nov 16 06:29:15 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:131 wonderboymusic]:
> [attachment:21663-PDO-merge.diff 21663-PDO-merge.diff] is my first
attempt to merge the PDO driver into `wpdb`, which was way more brutal a
task than it looks in the diff. Took me like 7 tries. A Meta Query unit
test fails, but everything else passes.
>
> Adding this as a conversation piece.
Emulated prepared statements are an essential flag in my own experience,
and it usually is what is needed, wanted and expected. It produces better
query plans, too.
http://stackoverflow.com/questions/10113562/pdo-mysql-use-pdoattr-emulate-
prepares-or-not
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21663#comment:132>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list