diff options
author | Robin Appelman <robin@icewind.nl> | 2024-07-10 20:19:15 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-07-17 15:46:39 +0200 |
commit | ad88fd07e3fb3c64a9919047932008876e79ac7a (patch) | |
tree | 5b950205ae06c7ce771ca76c0177e3201d2bfc8e /lib/private | |
parent | 80f8c7949e2ee224f1f8ec0eb1cf7e6a3513f186 (diff) | |
download | nextcloud-server-ad88fd07e3fb3c64a9919047932008876e79ac7a.tar.gz nextcloud-server-ad88fd07e3fb3c64a9919047932008876e79ac7a.zip |
fix: make joining on tags in search queries work with sharding
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Files/Cache/QuerySearchHelper.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/QuerySearchHelper.php b/lib/private/Files/Cache/QuerySearchHelper.php index 5af43455ea3..0b164912301 100644 --- a/lib/private/Files/Cache/QuerySearchHelper.php +++ b/lib/private/Files/Cache/QuerySearchHelper.php @@ -110,7 +110,6 @@ class QuerySearchHelper { $query ->leftJoin('file', 'vcategory_to_object', 'tagmap', $query->expr()->eq('file.fileid', 'tagmap.objid')) ->leftJoin('tagmap', 'vcategory', 'tag', $query->expr()->andX( - $query->expr()->eq('tagmap.type', 'tag.type'), $query->expr()->eq('tagmap.categoryid', 'tag.id'), $query->expr()->eq('tag.type', $query->createNamedParameter('files')), $query->expr()->eq('tag.uid', $query->createNamedParameter($user->getUID())) |