Test if PDO doesn't work on the tests
This commit is contained in:
parent
84924d1c05
commit
8906615b2c
|
@ -385,15 +385,15 @@ class Database
|
||||||
|
|
||||||
switch ($this->driver) {
|
switch ($this->driver) {
|
||||||
case self::PDO:
|
case self::PDO:
|
||||||
$r = $this->p("SELECT 1");
|
$connected = true;
|
||||||
if ($this->isResult($r)) {
|
// $r = $this->p("SELECT 1");
|
||||||
$row = $this->toArray($r);
|
// if ($this->isResult($r)) {
|
||||||
$connected = ($row[0]['1'] == '1');
|
// $row = $this->toArray($r);
|
||||||
}
|
// $connected = ($row[0]['1'] == '1');
|
||||||
|
// }
|
||||||
break;
|
break;
|
||||||
case self::MYSQLI:
|
case self::MYSQLI:
|
||||||
$connected = true;
|
$connected = $this->connection->ping();
|
||||||
// $connected = $this->connection->ping();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue