Skip to content

Commit 5d2206d

Browse files
committed
core: amysqli driver reconnect fix
1 parent b64f1e3 commit 5d2206d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

public_html/core/database/amysqli.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ public function query($sql, $noexcept = false)
9898
if ($e->getCode() == 2006 && $this->reconnect_cnt < self::MAX_RECONNECT_CNT) {
9999
try {
100100
$this->__construct($this->hostname, $this->username, $this->password, $this->database);
101-
$result = $this->query($sql, $noexcept);
102-
$message = "Reconnected to database {$this->database} after Mysql connection has dropped";
101+
$result = $this->connection->query($sql);
102+
$message = "Reconnected to database ".$this->database." after Mysql connection has dropped";
103103
$error = new AError($message);
104104
$error->toDebug();
105105
} catch (Exception $exc) {

0 commit comments

Comments
 (0)