Merge pull request #11659 from MrPetovan/bug/11511-relocate-quote-identifier

Add missing identifier quote in Database->replaceInTableFields
pull/11662/head
Tobias Diekershoff 2022-06-20 06:26:33 +02:00 committed by GitHub
commit 13a5a30b28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1820,7 +1820,7 @@ class Database
$upds = implode(', ', $upd);
$r = $this->e(sprintf("UPDATE %s SET %s;", $table_name, $upds));
$r = $this->e(sprintf("UPDATE %s SET %s;", DBA::quoteIdentifier($table_name), $upds));
if (!$this->isResult($r)) {
throw new \RuntimeException("Failed updating `$table_name`: " . $this->errorMessage());
}