]> git.mxchange.org Git - friendica.git/commitdiff
Test if PDO doesn't work on the tests
authorMichael <heluecht@pirati.ca>
Sat, 7 Nov 2020 10:27:22 +0000 (10:27 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 7 Nov 2020 10:27:22 +0000 (10:27 +0000)
src/Database/Database.php

index f74241c42c795b9e6e919e01e9432fae798a6953..4ca454821b565ee1382e18c8cf42b07f7d11812e 100644 (file)
@@ -385,15 +385,15 @@ class Database
 
                switch ($this->driver) {
                        case self::PDO:
-                               $r = $this->p("SELECT 1");
-                               if ($this->isResult($r)) {
-                                       $row       = $this->toArray($r);
-                                       $connected = ($row[0]['1'] == '1');
-                               }
+                               $connected = true;
+//                             $r = $this->p("SELECT 1");
+//                             if ($this->isResult($r)) {
+//                                     $row       = $this->toArray($r);
+//                                     $connected = ($row[0]['1'] == '1');
+//                             }
                                break;
                        case self::MYSQLI:
-                               $connected = true;
-                               // $connected = $this->connection->ping();
+                               $connected = $this->connection->ping();
                                break;
                }