aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DB/QueryBuilder
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-02-14 16:04:35 +0100
committerRobin Appelman <robin@icewind.nl>2024-08-23 15:12:10 +0200
commit658d2f7ea1f35ddd3c5d4a2c3f80d822ef5144c8 (patch)
treef5ca3e992859187905c16474e14d0e3503a11bad /lib/private/DB/QueryBuilder
parent0cab17bfe7825e49d3dd6608f20f46164c975e31 (diff)
downloadnextcloud-server-658d2f7ea1f35ddd3c5d4a2c3f80d822ef5144c8.tar.gz
nextcloud-server-658d2f7ea1f35ddd3c5d4a2c3f80d822ef5144c8.zip
feat: expose escapeLikeParameter trough query builder
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/DB/QueryBuilder')
-rw-r--r--lib/private/DB/QueryBuilder/QueryBuilder.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/DB/QueryBuilder/QueryBuilder.php b/lib/private/DB/QueryBuilder/QueryBuilder.php
index 4c4786f02b6..b5ee37e3ddf 100644
--- a/lib/private/DB/QueryBuilder/QueryBuilder.php
+++ b/lib/private/DB/QueryBuilder/QueryBuilder.php
@@ -1336,4 +1336,8 @@ class QueryBuilder implements IQueryBuilder {
return $this->helper->quoteColumnName($alias);
}
+
+ public function escapeLikeParameter(string $parameter): string {
+ return $this->connection->escapeLikeParameter($parameter);
+ }
}