mirror of
https://github.com/nextcloud/server.git
synced 2026-02-26 11:31:13 -05:00
fix concat usage
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
060c607716
commit
8c097afbdc
1 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ class RepairShareOwnership extends Command {
|
|||
->join('s', 'filecache', 'f', $qb->expr()->eq('s.item_source', $qb->expr()->castColumn('f.fileid', IQueryBuilder::PARAM_STR)))
|
||||
->join('s', 'mounts', 'm', $qb->expr()->eq('f.storage', 'm.storage_id'))
|
||||
->where($qb->expr()->neq('m.user_id', 's.uid_owner'))
|
||||
->andWhere($qb->expr()->eq($qb->func()->concat($qb->expr()->literal('/'), 'm.user_id', $qb->expr()->literal('/')), 'm.mount_point'))
|
||||
->andWhere($qb->expr()->eq($qb->func()->concat($qb->expr()->literal('/'), $qb->func()->concat('m.user_id', $qb->expr()->literal('/'))), 'm.mount_point'))
|
||||
->executeQuery()
|
||||
->fetchAll();
|
||||
|
||||
|
|
@ -143,7 +143,7 @@ class RepairShareOwnership extends Command {
|
|||
->join('s', 'filecache', 'f', $qb->expr()->eq('s.item_source', $qb->expr()->castColumn('f.fileid', IQueryBuilder::PARAM_STR)))
|
||||
->join('s', 'mounts', 'm', $qb->expr()->eq('f.storage', 'm.storage_id'))
|
||||
->where($qb->expr()->neq('m.user_id', 's.uid_owner'))
|
||||
->andWhere($qb->expr()->eq($qb->func()->concat($qb->expr()->literal('/'), 'm.user_id', $qb->expr()->literal('/')), 'm.mount_point'))
|
||||
->andWhere($qb->expr()->eq($qb->func()->concat($qb->expr()->literal('/'), $qb->func()->concat('m.user_id', $qb->expr()->literal('/'))), 'm.mount_point'))
|
||||
->andWhere($qb->expr()->eq('s.share_with', $qb->createNamedParameter($user->getUID())))
|
||||
->executeQuery()
|
||||
->fetchAll();
|
||||
|
|
|
|||
Loading…
Reference in a new issue