From c39741fd654c827086b33f7506eb48bfaf480403 Mon Sep 17 00:00:00 2001 From: Johan Bernhardsson Date: Wed, 26 Feb 2025 15:43:36 +0100 Subject: [PATCH] fix: Change SQL query so that it is ansi safe Signed-off-by: Johan Bernhardsson --- apps/settings/lib/SetupChecks/MysqlRowFormat.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/settings/lib/SetupChecks/MysqlRowFormat.php b/apps/settings/lib/SetupChecks/MysqlRowFormat.php index 17e7fc6696b..3c27b73db89 100644 --- a/apps/settings/lib/SetupChecks/MysqlRowFormat.php +++ b/apps/settings/lib/SetupChecks/MysqlRowFormat.php @@ -56,11 +56,11 @@ class MysqlRowFormat implements ISetupCheck { * @return string[] */ private function getRowNotDynamicTables(): array { - $sql = 'SELECT table_name + $sql = "SELECT table_name FROM information_schema.tables WHERE table_schema = ? - AND table_name LIKE "*PREFIX*%" - AND row_format != "Dynamic";'; + AND table_name LIKE '*PREFIX*%' + AND row_format != 'Dynamic';"; return $this->connection->executeQuery( $sql,