From 5336c52ffee34d445e35dcd4e6983097c81ccbd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <1005065+DeepDiver1975@users.noreply.github.com> Date: Thu, 30 Jun 2022 16:36:06 +0200 Subject: [PATCH] fix: ora bug --- lib/private/PreviewCleanup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/PreviewCleanup.php b/lib/private/PreviewCleanup.php index 0ee2005f49a3..3e9cc0a01137 100644 --- a/lib/private/PreviewCleanup.php +++ b/lib/private/PreviewCleanup.php @@ -82,7 +82,7 @@ private function queryPreviewsToDelete(int $startFileId = 0, int $chunkSize = 10 $sql = "select `fileid`, `name`, `user_id` from `*PREFIX*filecache` `fc` join `*PREFIX*mounts` on `storage` = `storage_id` where `parent` in (select `fileid` from `*PREFIX*filecache` where `storage` in (select `numeric_id` from `oc_storages` where `id` like 'home::%' or `id` like 'object::user:%') and `path` = 'thumbnails') - and not exists(select `fileid` from `*PREFIX*filecache` where `fc`.`name` = CAST(`*PREFIX*filecache`.`fileid` as CHAR)) + and not exists(select `fileid` from `*PREFIX*filecache` where `fc`.`name` = CAST(`*PREFIX*filecache`.`fileid` as CHAR(24))) and `fc`.`fileid` > ? order by `user_id`, `fileid`";