summaryrefslogtreecommitdiffstats
path: root/lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-06-13 11:55:37 +0200
committerGitHub <noreply@github.com>2022-06-13 11:55:37 +0200
commit8809de1eefbfa78998d9379a7040858d8e01e820 (patch)
tree4e58c2153749cb486472efc8bcc220318c0f50a0 /lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php
parentc26ddf10de489fe86be6232d9d409b3acb930cec (diff)
parent8238582e59b7b6ec03318bcf81bf47cce54af320 (diff)
downloadnextcloud-server-8809de1eefbfa78998d9379a7040858d8e01e820.tar.gz
nextcloud-server-8809de1eefbfa78998d9379a7040858d8e01e820.zip
Merge pull request #31966 from nextcloud/unencrypted-size
store unencrypted size in the unencrypted_size column
Diffstat (limited to 'lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php')
-rw-r--r--lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php b/lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php
index 289aa09b003..5425138fa6c 100644
--- a/lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php
+++ b/lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php
@@ -23,15 +23,18 @@
*/
namespace OC\DB\QueryBuilder\ExpressionBuilder;
+use OC\DB\QueryBuilder\QueryFunction;
+use OCP\DB\QueryBuilder\IQueryFunction;
+
class SqliteExpressionBuilder extends ExpressionBuilder {
/**
* @inheritdoc
*/
- public function like($x, $y, $type = null): string {
- return parent::like($x, $y, $type) . " ESCAPE '\\'";
+ public function like($x, $y, $type = null): IQueryFunction {
+ return new QueryFunction(parent::like($x, $y, $type) . " ESCAPE '\\'");
}
- public function iLike($x, $y, $type = null): string {
- return $this->like($this->functionBuilder->lower($x), $this->functionBuilder->lower($y), $type);
+ public function iLike($x, $y, $type = null): IQueryFunction {
+ return new QueryFunction($this->like($this->functionBuilder->lower($x), $this->functionBuilder->lower($y), $type));
}
}