Skip to content

Commit

Permalink
Connection: Cleanup results in ping()
Browse files Browse the repository at this point in the history
fixes #52

(cherry picked from commit 0f31551)
  • Loading branch information
nilmerg committed Apr 26, 2022
1 parent 68ba15e commit 6b9f13a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function disconnect()
public function ping($reconnect = true)
{
try {
$this->exec('SELECT 1');
$this->query('SELECT 1')->closeCursor();
} catch (Exception $e) {
if (! $reconnect) {
return false;
Expand Down

0 comments on commit 6b9f13a

Please sign in to comment.