mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix(querybuilder): Fix boolean type so that oracle handles boolean well
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
5bd1e28594
commit
abe82432cb
2 changed files with 3 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue