1
0
Fork 0
mirror of synced 2024-06-28 19:20:25 +12:00

Improved DB reconnection

This commit is contained in:
Eldad Fux 2020-07-04 21:22:04 +03:00
parent cece99be36
commit 0e49fb7b63

View file

@ -49,7 +49,9 @@ class PDOStatement extends PDOStatementNative
try {
$result = $this->PDOStatement->execute($input_parameters);
} catch (\Throwable $th) {
$this->pdo->reconnect();
$this->pdo = $this->pdo->reconnect();
//$this->PDOStatement = $this->pdo->prepare($this->PDOStatement->queryString, []);
$result = $this->PDOStatement->execute($input_parameters);
}