From d48e40c1bfa743988b89450d479894440ba6babb Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 19 Jun 2022 20:06:12 -0400 Subject: [PATCH] Add missing identifier quote in Database->replaceInTableFields - This caused hyphenated table names to fail the replace query --- src/Database/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database/Database.php b/src/Database/Database.php index 7edbdf2a2..d1aff8221 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -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()); }