]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(theming): Fix query for configvalue as CLOB on OCI 36453/head
authorJulius Härtl <jus@bitgrid.net>
Tue, 31 Jan 2023 09:19:35 +0000 (10:19 +0100)
committerJulius Härtl <jus@bitgrid.net>
Tue, 31 Jan 2023 10:57:54 +0000 (11:57 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/theming/lib/Jobs/MigrateBackgroundImages.php

index 97665d1179fde595fb99af7a97d7f759dbba750e..62179e46a4ba14c2f8e442851f4f534489dc26a5 100644 (file)
@@ -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);