Add missing identifier quote in Database->replaceInTableFields
- This caused hyphenated table names to fail the replace query
This commit is contained in:
parent
622b978a84
commit
d48e40c1bf
|
@ -1820,7 +1820,7 @@ class Database
|
||||||
|
|
||||||
$upds = implode(', ', $upd);
|
$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)) {
|
if (!$this->isResult($r)) {
|
||||||
throw new \RuntimeException("Failed updating `$table_name`: " . $this->errorMessage());
|
throw new \RuntimeException("Failed updating `$table_name`: " . $this->errorMessage());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user