summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-01-11 15:58:32 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-14 10:54:40 +0100
commit0f454ff5aa0ca7b89b7deb3a9f888d1551a870ca (patch)
tree93448d9adf6cc535dac49ebc639c261f27e14964 /lib
parent4d037b76b4149ee4a5d2132110db8c31ec50c303 (diff)
downloadnextcloud-server-0f454ff5aa0ca7b89b7deb3a9f888d1551a870ca.tar.gz
nextcloud-server-0f454ff5aa0ca7b89b7deb3a9f888d1551a870ca.zip
Use namedparameter
Diffstat (limited to 'lib')
-rw-r--r--lib/private/share20/defaultshareprovider.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/private/share20/defaultshareprovider.php b/lib/private/share20/defaultshareprovider.php
index 7a08ecb1210..1d9a2072966 100644
--- a/lib/private/share20/defaultshareprovider.php
+++ b/lib/private/share20/defaultshareprovider.php
@@ -185,8 +185,7 @@ class DefaultShareProvider implements IShareProvider {
$qb = $this->dbConn->getQueryBuilder();
$qb->select('*')
->from('share')
- ->where($qb->expr()->eq('parent', $qb->createParameter('parent')))
- ->setParameter(':parent', $parent->getId())
+ ->where($qb->expr()->eq('parent', $qb->createNamedParameter($parent->getId())))
->orderBy('id');
$cursor = $qb->execute();
@@ -210,8 +209,7 @@ class DefaultShareProvider implements IShareProvider {
$qb = $this->dbConn->getQueryBuilder();
$qb->delete('share')
- ->where($qb->expr()->eq('id', $qb->createParameter('id')))
- ->setParameter(':id', $share->getId());
+ ->where($qb->expr()->eq('id', $qb->createNamedParameter($share->getId())));
try {
$qb->execute();
@@ -244,8 +242,7 @@ class DefaultShareProvider implements IShareProvider {
$qb->select('*')
->from('share')
- ->where($qb->expr()->eq('id', $qb->createParameter('id')))
- ->setParameter(':id', $id);
+ ->where($qb->expr()->eq('id', $qb->createNamedParameter($id)));
$cursor = $qb->execute();
$data = $cursor->fetch();