[wp-trac] [WordPress Trac] #21663: Use PDO or mysqli for MySQL queries when available
WordPress Trac
noreply at wordpress.org
Tue Jan 28 08:06:58 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 yandod):
Replying to [comment:160 adegans]:
> Better yet - Just have a switch there
> define('WP_DB_TYPE', 'mysqli'); // mysql, mysqli, postgres (?) Whatever
else kind of types you wanna support.
it makes sense.
For now, saving red data animal mysql is primary purpose of this switch.
if the switch was false, we can use PDO or better wp_db which supports
multiple abstracted database layer.
main part of this idea is, WordPress can still bundle current wp_db with
mysql module and use it with some switch.
And WordPress can also implement modern wp_db which takes better solution
we want.
Replacing mysql with X type discussion seems never ending.
Having gurantee of diversity on wp_db could be minimum improvement for
future.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21663#comment:161>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list