Improved DB reconnection
This commit is contained in:
parent
cece99be36
commit
0e49fb7b63
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,9 @@ class PDOStatement extends PDOStatementNative
|
||||||
try {
|
try {
|
||||||
$result = $this->PDOStatement->execute($input_parameters);
|
$result = $this->PDOStatement->execute($input_parameters);
|
||||||
} catch (\Throwable $th) {
|
} 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);
|
$result = $this->PDOStatement->execute($input_parameters);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue