diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-06-13 20:11:27 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-06-13 20:11:27 +0300 |
commit | f31a30837b87db12a206b63b4f58e37516ce8cbf (patch) | |
tree | 4180339f6e56bc98c489d634c2d097562de91d12 /lib/Db | |
parent | f1f4a287ce3b2074759ef959f42af1639ab4daa6 (diff) |
Work around breaking server change and QB expressions
Expressions are now "query function" objects instead of strings.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Db')
-rw-r--r-- | lib/Db/MailboxMapper.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Db/MailboxMapper.php b/lib/Db/MailboxMapper.php index 7b2040fd3..66a56f359 100644 --- a/lib/Db/MailboxMapper.php +++ b/lib/Db/MailboxMapper.php @@ -36,6 +36,7 @@ use OCP\AppFramework\Db\MultipleObjectsReturnedException; use OCP\AppFramework\Db\QBMapper; use OCP\AppFramework\Utility\ITimeFactory; use OCP\DB\QueryBuilder\IQueryBuilder; +use OCP\DB\QueryBuilder\IQueryFunction; use OCP\IDBConnection; use function array_map; @@ -216,9 +217,9 @@ class MailboxMapper extends QBMapper { * @param IQueryBuilder $query * @param int|null $value * - * @return string + * @return string|IQueryFunction */ - private function eqOrNull(IQueryBuilder $query, string $column, ?int $value, int $type): string { + private function eqOrNull(IQueryBuilder $query, string $column, ?int $value, int $type) { if ($value === null) { return $query->expr()->isNull($column); } |