Merge pull request #4283 from nextcloud/shares-by-folder-quote

properly quota table names in getSharesInFolder
This commit is contained in:
Morris Jobke 2017-04-10 19:39:19 -05:00 committed by GitHub
commit 11d6fe1023
3 changed files with 3 additions and 3 deletions

View File

@ -608,7 +608,7 @@ class FederatedShareProvider implements IShareProvider {
);
}
$qb->innerJoin('s', 'filecache' ,'f', 's.file_source = f.fileid');
$qb->innerJoin('s', 'filecache' ,'f', $qb->expr()->eq('s.file_source', 'f.fileid'));
$qb->andWhere($qb->expr()->eq('f.parent', $qb->createNamedParameter($node->getId())));
$qb->orderBy('id');

View File

@ -839,7 +839,7 @@ class ShareByMailProvider implements IShareProvider {
);
}
$qb->innerJoin('s', 'filecache' ,'f', 's.file_source = f.fileid');
$qb->innerJoin('s', 'filecache' ,'f', $qb->expr()->eq('s.file_source', 'f.fileid'));
$qb->andWhere($qb->expr()->eq('f.parent', $qb->createNamedParameter($node->getId())));
$qb->orderBy('id');

View File

@ -493,7 +493,7 @@ class DefaultShareProvider implements IShareProvider {
);
}
$qb->innerJoin('s', 'filecache' ,'f', 's.file_source = f.fileid');
$qb->innerJoin('s', 'filecache' ,'f', $qb->expr()->eq('s.file_source', 'f.fileid'));
$qb->andWhere($qb->expr()->eq('f.parent', $qb->createNamedParameter($node->getId())));
$qb->orderBy('id');