Improved DB reconnection
This commit is contained in:
parent
cece99be36
commit
0e49fb7b63
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue