]> source.dussan.org Git - nextcloud-server.git/commitdiff
change sql where order to match index order
authorJulien Veyssier <julien-nc@posteo.net>
Fri, 4 Aug 2023 08:43:54 +0000 (10:43 +0200)
committerJulien Veyssier <julien-nc@posteo.net>
Wed, 9 Aug 2023 12:58:02 +0000 (14:58 +0200)
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
(cherry picked from commit 05a6a799a7e05f90c9d1eb10b5a41800457e1749)
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
lib/private/TextProcessing/Db/TaskMapper.php

index 6fde1e510b58e7e3c868f4fa108b97bb87391941..62dabea544f8f12620a9ca691a7351d1878aee03 100644 (file)
@@ -91,8 +91,8 @@ class TaskMapper extends QBMapper {
                $qb = $this->db->getQueryBuilder();
                $qb->select(Task::$columns)
                        ->from($this->tableName)
-                       ->where($qb->expr()->eq('app_id', $qb->createPositionalParameter($appId)))
-                       ->andWhere($qb->expr()->eq('user_id', $qb->createPositionalParameter($userId)));
+                       ->where($qb->expr()->eq('user_id', $qb->createPositionalParameter($userId)))
+                       ->andWhere($qb->expr()->eq('app_id', $qb->createPositionalParameter($appId)));
                if ($identifier !== null) {
                        $qb->andWhere($qb->expr()->eq('identifier', $qb->createPositionalParameter($identifier)));
                }