mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
Prevent column name conflict between tables
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
8ca910976d
commit
ce7b6ffed2
1 changed files with 4 additions and 1 deletions
|
|
@ -643,7 +643,10 @@ class DefaultShareProvider implements IShareProvider {
|
|||
|
||||
public function getSharesInFolder($userId, Folder $node, $reshares) {
|
||||
$qb = $this->dbConn->getQueryBuilder();
|
||||
$qb->select('*')
|
||||
$qb->select('s.*',
|
||||
'f.fileid', 'f.path', 'f.permissions AS f_permissions', 'f.storage', 'f.path_hash',
|
||||
'f.parent AS f_parent', 'f.name', 'f.mimetype', 'f.mimepart', 'f.size', 'f.mtime', 'f.storage_mtime',
|
||||
'f.encrypted', 'f.unencrypted_size', 'f.etag', 'f.checksum')
|
||||
->from('share', 's')
|
||||
->andWhere($qb->expr()->orX(
|
||||
$qb->expr()->eq('item_type', $qb->createNamedParameter('file')),
|
||||
|
|
|
|||
Loading…
Reference in a new issue