[wp-trac] [WordPress Trac] #21663: Use mysqli for MySQL queries when available
WordPress Trac
noreply at wordpress.org
Thu Apr 3 02:10:53 UTC 2014
#21663: Use 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: needs-testing | Focuses:
----------------------------+------------------
Comment (by pento):
To try and workaround situations where mysqli fails to connect, but mysql
probably works, attachment:21663.17.diff implements a fallback to mysql,
if the first attempt to connect through mysqli fails.
This patch doesn't try to figure out why the mysqli connection failed - if
it's a connection configuration issue as described in comment:212, then it
should just fallback nicely to mysql. If it's a more serious issue (ie,
the server has gone away), mysql will return the same error as mysqli.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21663#comment:222>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list