We weren't able to test mysqlnd, so better remove the code

This commit is contained in:
Michael 2017-04-24 21:51:47 +00:00
parent eb63ce5df5
commit 8de510e635

View file

@ -522,9 +522,6 @@ class dba {
self::$dbo->error = self::$dbo->db->error; self::$dbo->error = self::$dbo->db->error;
self::$dbo->errorno = self::$dbo->db->errno; self::$dbo->errorno = self::$dbo->db->errno;
$retval = false; $retval = false;
} elseif (method_exists($stmt, 'get_result')) {
// Is mysqlnd installed?
$retval = $stmt->get_result();
} else { } else {
$stmt->store_result(); $stmt->store_result();
$retval = $stmt; $retval = $stmt;
@ -657,11 +654,6 @@ class dba {
case 'pdo': case 'pdo':
return $stmt->fetch(PDO::FETCH_ASSOC); return $stmt->fetch(PDO::FETCH_ASSOC);
case 'mysqli': case 'mysqli':
// When mysqlnd is installed, we can use a shortcut
if (method_exists($stmt, 'fetch_array')) {
return $stmt->fetch_array(MYSQLI_ASSOC);
}
// This code works, but is slow // This code works, but is slow
// Bind the result to a result array // Bind the result to a result array