From 33e5f2d345cfbcdd3bb17faebb34ce3d9e0e6275 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Mon, 15 Dec 2025 17:33:15 +0100 Subject: [PATCH] fix(background-jobs): Fix unit tests with 32-bits tests Signed-off-by: Carl Schwan --- lib/private/BackgroundJob/JobList.php | 4 ++-- tests/lib/BackgroundJob/JobListTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php index 846c7562638..a808c8231b1 100644 --- a/lib/private/BackgroundJob/JobList.php +++ b/lib/private/BackgroundJob/JobList.php @@ -289,7 +289,7 @@ class JobList implements IJobList { $query = $this->connection->getQueryBuilder(); $query->select('*') ->from('jobs') - ->where($query->expr()->eq('id', $query->createNamedParameter($id, IQueryBuilder::PARAM_INT))); + ->where($query->expr()->eq('id', $query->createNamedParameter($id))); $result = $query->executeQuery(); $row = $result->fetch(); $result->closeCursor(); @@ -361,7 +361,7 @@ class JobList implements IJobList { $query = $this->connection->getQueryBuilder(); $query->update('jobs') ->set('last_run', $query->createNamedParameter(time(), IQueryBuilder::PARAM_INT)) - ->where($query->expr()->eq('id', $query->createNamedParameter($job->getId(), IQueryBuilder::PARAM_INT))); + ->where($query->expr()->eq('id', $query->createNamedParameter($job->getId()))); if ($job instanceof \OCP\BackgroundJob\TimedJob && !$job->isTimeSensitive()) { diff --git a/tests/lib/BackgroundJob/JobListTest.php b/tests/lib/BackgroundJob/JobListTest.php index ae3046f9b3c..4314bb19aa6 100644 --- a/tests/lib/BackgroundJob/JobListTest.php +++ b/tests/lib/BackgroundJob/JobListTest.php @@ -151,7 +151,7 @@ class JobListTest extends TestCase { $query = $this->connection->getQueryBuilder(); $query->insert('jobs') ->values([ - 'id' => $query->createNamedParameter($id, IQueryBuilder::PARAM_INT), + 'id' => $query->createNamedParameter($id), 'class' => $query->createNamedParameter($class), 'argument' => $query->createNamedParameter($argument), 'last_run' => $query->createNamedParameter($lastRun, IQueryBuilder::PARAM_INT),