]> git.mxchange.org Git - friendica.git/commitdiff
We weren't able to test mysqlnd, so better remove the code
authorMichael <heluecht@pirati.ca>
Mon, 24 Apr 2017 21:51:47 +0000 (21:51 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 24 Apr 2017 21:51:47 +0000 (21:51 +0000)
include/dba.php

index 4eaa1e314a07cfb00388d0199f8854ed43ca359e..d4a05ff94873814ae8f8391df442943c9fb0b823 100644 (file)
@@ -522,9 +522,6 @@ class dba {
                                        self::$dbo->error = self::$dbo->db->error;
                                        self::$dbo->errorno = self::$dbo->db->errno;
                                        $retval = false;
-                               } elseif (method_exists($stmt, 'get_result')) {
-                                       // Is mysqlnd installed?
-                                       $retval = $stmt->get_result();
                                } else {
                                        $stmt->store_result();
                                        $retval = $stmt;
@@ -657,11 +654,6 @@ class dba {
                        case 'pdo':
                                return $stmt->fetch(PDO::FETCH_ASSOC);
                        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
 
                                // Bind the result to a result array