diff options
author | Joas Schilling <coding@schilljs.com> | 2017-07-21 14:45:49 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-08-02 09:48:16 +0200 |
commit | 106df7bc330a2c2e6d974e33be2bed26e22b538e (patch) | |
tree | cbdcc93eabf44bc2bcc5501c09303d095a91bcd3 | |
parent | a76d4ef04e461132081ad84c78784dfacfc9896f (diff) | |
download | nextcloud-server-106df7bc330a2c2e6d974e33be2bed26e22b538e.tar.gz nextcloud-server-106df7bc330a2c2e6d974e33be2bed26e22b538e.zip |
Fix missing escape on column and table name
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | tests/lib/Files/Config/UserMountCacheTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/Files/Config/UserMountCacheTest.php b/tests/lib/Files/Config/UserMountCacheTest.php index f455dc987af..a96b385fcbf 100644 --- a/tests/lib/Files/Config/UserMountCacheTest.php +++ b/tests/lib/Files/Config/UserMountCacheTest.php @@ -332,7 +332,7 @@ class UserMountCacheTest extends TestCase { $id = (int)$this->connection->lastInsertId('*PREFIX*filecache'); $this->fileIds[] = $id; } 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->execute([$storageId, md5($internalPath)]); return (int)$query->fetchColumn(); |