diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-06-13 11:55:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 11:55:37 +0200 |
commit | 8809de1eefbfa78998d9379a7040858d8e01e820 (patch) | |
tree | 4e58c2153749cb486472efc8bcc220318c0f50a0 /lib/private/DB/QueryBuilder/ExpressionBuilder/SqliteExpressionBuilder.php | |
parent | c26ddf10de489fe86be6232d9d409b3acb930cec (diff) | |
parent | 8238582e59b7b6ec03318bcf81bf47cce54af320 (diff) | |
download | nextcloud-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.php | 11 |
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)); } } |