diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-10 10:24:08 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-10 10:24:08 +0100 |
commit | 6b4117df34232fbe9da49fca9a813bc8c5ec226d (patch) | |
tree | 4d4099c2477e48da4f6ff24de611dd2cd53930f2 /lib | |
parent | 308c99f1fd7ee82348232e93d1a6bae32ad0afa7 (diff) | |
download | nextcloud-server-6b4117df34232fbe9da49fca9a813bc8c5ec226d.tar.gz nextcloud-server-6b4117df34232fbe9da49fca9a813bc8c5ec226d.zip |
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 |