mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #31403 from nextcloud/backport/31398/stable22
[stable22] Also use hashed/indexed column on delete
This commit is contained in:
commit
5b0bbb525c
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue