From 8906615b2c5716555cfd6e321790b7a26837c240 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 7 Nov 2020 10:27:22 +0000 Subject: [PATCH] Test if PDO doesn't work on the tests --- src/Database/Database.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Database/Database.php b/src/Database/Database.php index f74241c42..4ca454821 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -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; }