Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Commit 84a7213

Browse files
committed
bug fixed for db client ping()
1 parent 3eb0a42 commit 84a7213

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Components/DatabaseClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,6 +996,7 @@ protected function bindValue(PDOStatement $sth, $key, $val)
996996
public function ping()
997997
{
998998
try {
999+
$this->connect();
9991000
$this->pdo->query('select 1')->fetchColumn();
10001001
} catch (\PDOException $e) {
10011002
if (strpos($e->getMessage(), 'server has gone away') !== false) {

0 commit comments

Comments
 (0)