diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php index ccbd4633155..ebde26d396b 100644 --- a/lib/private/DB/Connection.php +++ b/lib/private/DB/Connection.php @@ -702,7 +702,7 @@ class Connection extends PrimaryReadReplicaConnection { } try { - $this->_conn->query($this->getDriver()->getDatabasePlatform()->getDummySelectSQL()); + $this->_conn->query($this->getDatabasePlatform()->getDummySelectSQL()); $this->lastConnectionCheck[$this->getConnectionName()] = time(); } catch (ConnectionLost|\Exception $e) { $this->logger->warning('Exception during connectivity check, closing and reconnecting', ['exception' => $e]);