]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix appconfig compatibility with Oracle DB
authorJoas Schilling <coding@schilljs.com>
Mon, 20 Feb 2023 13:46:00 +0000 (14:46 +0100)
committerJoas Schilling <coding@schilljs.com>
Thu, 23 Feb 2023 15:57:54 +0000 (16:57 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/AppConfig.php

index 04e7637346661f998dd12d25e2d61c24ff92eeee..cd93c4f42c4f1138842a2e0e0756c104cd233de5 100644 (file)
@@ -34,6 +34,7 @@ namespace OC;
 
 use OC\DB\Connection;
 use OC\DB\OracleConnection;
+use OCP\DB\QueryBuilder\IQueryBuilder;
 use OCP\IAppConfig;
 use OCP\IConfig;
 
@@ -298,7 +299,7 @@ class AppConfig implements IAppConfig {
                                $sql->andWhere(
                                        $sql->expr()->orX(
                                                $sql->expr()->isNull('configvalue'),
-                                               $sql->expr()->neq('configvalue', $sql->createNamedParameter($value))
+                                               $sql->expr()->neq('configvalue', $sql->createNamedParameter($value), IQueryBuilder::PARAM_STR)
                                        )
                                );
                        }