summaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-01-31 10:19:35 +0100
committerJulius Härtl <jus@bitgrid.net>2023-01-31 11:57:54 +0100
commitecccff8bd232b579f08bc7fe387a5379cc6436cd (patch)
tree0e3d684a9f241bd3e1f9d0761a7afd6ebe688a7e /apps/theming
parentc246edece6432e6a0f28f14ac93131e8439e4fe7 (diff)
downloadnextcloud-server-ecccff8bd232b579f08bc7fe387a5379cc6436cd.tar.gz
nextcloud-server-ecccff8bd232b579f08bc7fe387a5379cc6436cd.zip
fix(theming): Fix query for configvalue as CLOB on OCI
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/lib/Jobs/MigrateBackgroundImages.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/theming/lib/Jobs/MigrateBackgroundImages.php b/apps/theming/lib/Jobs/MigrateBackgroundImages.php
index 97665d1179f..62179e46a4b 100644
--- a/apps/theming/lib/Jobs/MigrateBackgroundImages.php
+++ b/apps/theming/lib/Jobs/MigrateBackgroundImages.php
@@ -30,6 +30,7 @@ use OCA\Theming\AppInfo\Application;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\IJobList;
use OCP\BackgroundJob\QueuedJob;
+use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\Files\AppData\IAppDataFactory;
use OCP\Files\IAppData;
use OCP\Files\NotFoundException;
@@ -92,7 +93,7 @@ class MigrateBackgroundImages extends QueuedJob {
->from('preferences')
->where($selector->expr()->eq('appid', $selector->createNamedParameter('theming')))
->andWhere($selector->expr()->eq('configkey', $selector->createNamedParameter('background')))
- ->andWhere($selector->expr()->eq('configvalue', $selector->createNamedParameter('custom')))
+ ->andWhere($selector->expr()->eq('configvalue', $selector->createNamedParameter('custom', IQueryBuilder::PARAM_STR), IQueryBuilder::PARAM_STR))
->executeQuery();
$userIds = $result->fetchAll(\PDO::FETCH_COLUMN);