[wp-trac] [WordPress Trac] #21663: Use PDO for MySQL queries when PDO is available
WordPress Trac
noreply at wordpress.org
Fri Jun 28 17:08:06 UTC 2013
#21663: Use PDO for MySQL queries when PDO is 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 |
-------------------------------------------------+-------------------------
Comment (by markoheijnen):
The MySQLi driver is broken. The part I don't understand is the return
value from wpdb_driver::query( $query ). That doesn't seems needed.
Fix for the warning is adding is_object() around the while loop:
{{{
if( is_object( $this->result ) ) {
while ( $row = $this->result->fetch_object() ) {
$ret[] = $row;
}
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21663#comment:89>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list