Skip to content

Commit 1890f89

Browse files
author
Michael Vasseur
committed
Use executeQuery over deprecated query()
Removing 1 of the deprecations
1 parent c2a60ea commit 1890f89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Controller/Jury/JuryMiscController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct(
5050
public function indexAction(ConfigurationService $config): Response
5151
{
5252
if ($this->isGranted('ROLE_ADMIN')) {
53-
$innodbSnapshotIsolation = $this->em->getConnection()->query('SHOW VARIABLES LIKE "innodb_snapshot_isolation"')->fetchAssociative();
53+
$innodbSnapshotIsolation = $this->em->getConnection()->executeQuery('SHOW VARIABLES LIKE "innodb_snapshot_isolation"')->fetchAssociative();
5454
if ($innodbSnapshotIsolation && $innodbSnapshotIsolation['Value'] === 'ON') {
5555
$this->addFlash('danger', 'InnoDB snapshot isolation is enabled. Set --innodb_snapshot_isolation=OFF in your MariaDB configuration. See https://github.com/DOMjudge/domjudge/issues/2848 for more information.');
5656
}

0 commit comments

Comments
 (0)