Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-03-02 14:08:10 +0300
committerGitHub <noreply@github.com>2022-03-02 14:08:10 +0300
commit6261d6731a6bde7616370432e78f7362b2126a88 (patch)
tree3339e177feea7ce0053d9c081cb430cf7c06be3b /lib
parent2ff0c972c98a14f4dbd81d7923b119770600918f (diff)
parentabcf45e3367461714785b742f70a31b4774c3816 (diff)
Merge pull request #31398 from nextcloud/techdebt/noid/also-use-hashed-column-on-delete
Diffstat (limited to 'lib')
-rw-r--r--lib/private/BackgroundJob/JobList.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php
index 16dfa7b58a6..67caea62af0 100644
--- a/lib/private/BackgroundJob/JobList.php
+++ b/lib/private/BackgroundJob/JobList.php
@@ -111,8 +111,8 @@ class JobList implements IJobList {
$query->delete('jobs')
->where($query->expr()->eq('class', $query->createNamedParameter($class)));
if (!is_null($argument)) {
- $argument = json_encode($argument);
- $query->andWhere($query->expr()->eq('argument', $query->createNamedParameter($argument)));
+ $argumentJson = json_encode($argument);
+ $query->andWhere($query->expr()->eq('argument_hash', $query->createNamedParameter(md5($argumentJson))));
}
$query->execute();
}