]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(querybuilder): Fix boolean type so that oracle handles boolean well backport/48215/stable30 48286/head
authorJoas Schilling <coding@schilljs.com>
Tue, 24 Sep 2024 06:36:03 +0000 (08:36 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 25 Sep 2024 06:40:53 +0000 (08:40 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Files/Cache/SearchBuilder.php
lib/public/DB/QueryBuilder/IQueryBuilder.php

index 32502cb8258b8c52ac4b0f403fb8e9ae272e8e57..2fd0167d27a53f07137fc929415633d13430e167 100644 (file)
@@ -64,7 +64,7 @@ class SearchBuilder {
                'owner' => 'string',
        ];
 
-       /** @var array<string, int> */
+       /** @var array<string, int|string> */
        protected static $paramTypeMap = [
                'string' => IQueryBuilder::PARAM_STR,
                'integer' => IQueryBuilder::PARAM_INT,
index 0c2aa4669c1cebff59fce41ab94891d1470a276b..5e3e792d298251d1ef99ad84779948e0001d1df5 100644 (file)
@@ -10,6 +10,7 @@ namespace OCP\DB\QueryBuilder;
 use Doctrine\DBAL\ArrayParameterType;
 use Doctrine\DBAL\Connection;
 use Doctrine\DBAL\ParameterType;
+use Doctrine\DBAL\Types\Types;
 use OCP\DB\Exception;
 use OCP\DB\IResult;
 use OCP\IDBConnection;
@@ -28,7 +29,7 @@ interface IQueryBuilder {
        /**
         * @since 9.0.0
         */
-       public const PARAM_BOOL = ParameterType::BOOLEAN;
+       public const PARAM_BOOL = Types::BOOLEAN;
        /**
         * @since 9.0.0
         */