Fix missing escape on column and table name
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
5d7cab245f
commit
18ba973c13
|
@ -331,7 +331,7 @@ class UserMountCacheTest extends TestCase {
|
||||||
$id = (int)$this->connection->lastInsertId('*PREFIX*filecache');
|
$id = (int)$this->connection->lastInsertId('*PREFIX*filecache');
|
||||||
$this->fileIds[] = $id;
|
$this->fileIds[] = $id;
|
||||||
} else {
|
} else {
|
||||||
$sql = 'SELECT fileid FROM *PREFIX*filecache WHERE `storage` = ? AND `path_hash` =?';
|
$sql = 'SELECT `fileid` FROM `*PREFIX*filecache` WHERE `storage` = ? AND `path_hash` =?';
|
||||||
$query = $this->connection->prepare($sql);
|
$query = $this->connection->prepare($sql);
|
||||||
$query->execute([$storageId, md5($internalPath)]);
|
$query->execute([$storageId, md5($internalPath)]);
|
||||||
return (int)$query->fetchColumn();
|
return (int)$query->fetchColumn();
|
||||||
|
|
Loading…
Reference in New Issue