aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2025-02-27 09:58:39 +0100
committerGitHub <noreply@github.com>2025-02-27 09:58:39 +0100
commit299a62b54d0b2990f6158364d53bf6c0dbc801d0 (patch)
tree3512f92d913bd39a595612d6b9cc58ff3eb45e25
parentc7900de4f20bc860986dcdf6dd9328ec201c4235 (diff)
parentc39741fd654c827086b33f7506eb48bfaf480403 (diff)
downloadnextcloud-server-299a62b54d0b2990f6158364d53bf6c0dbc801d0.tar.gz
nextcloud-server-299a62b54d0b2990f6158364d53bf6c0dbc801d0.zip
Merge pull request #51069 from small1/fixsetupchecksrowformat
Fix SQL query so that it is ansi safe fixing #51067
-rw-r--r--apps/settings/lib/SetupChecks/MysqlRowFormat.php6
1 files 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,