diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-15 12:14:17 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-15 12:14:17 +0100 |
commit | e9eeb3607fe0ba15413c1c22b1120fc53aaed6dc (patch) | |
tree | 1da9445e8bc8bb499cf7c7639629dbf612d9b5cd /lib | |
parent | f8180579d03fcd10ab8f92f1ecb27899436c7653 (diff) | |
parent | 6b4117df34232fbe9da49fca9a813bc8c5ec226d (diff) | |
download | nextcloud-server-e9eeb3607fe0ba15413c1c22b1120fc53aaed6dc.tar.gz nextcloud-server-e9eeb3607fe0ba15413c1c22b1120fc53aaed6dc.zip |
Merge pull request #23074 from owncloud/issue-22835-correctly-use-querybuilder-api
Correctly escape join statements and use selectAlias
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/repair/oldgroupmembershipshares.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/repair/oldgroupmembershipshares.php b/lib/private/repair/oldgroupmembershipshares.php index bae1bf61a7f..627645b116d 100644 --- a/lib/private/repair/oldgroupmembershipshares.php +++ b/lib/private/repair/oldgroupmembershipshares.php @@ -69,7 +69,7 @@ class OldGroupMembershipShares extends BasicEmitter implements RepairStep { $deletedEntries = 0; $query = $this->connection->getQueryBuilder(); - $query->select(['s1.id', $query->createFunction('s1.`share_with` AS `user`'), $query->createFunction('s2.`share_with` AS `group`')]) + $query->select('s1.id')->selectAlias('s1.share_with', 'user')->selectAlias('s2.share_with', 'group') ->from('share', 's1') ->where($query->expr()->isNotNull('s1.parent')) // \OC\Share\Constant::$shareTypeGroupUserUnique === 2 |