diff options
author | Joas Schilling <coding@schilljs.com> | 2017-01-05 11:45:43 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-01-05 14:30:25 +0100 |
commit | 22e74cf5ac65dde9a6154fcc32a89ba7231cb01f (patch) | |
tree | fb3a1b7131d22ac90632fbabb3a357d7199fb1e4 /lib | |
parent | 4128a08333746638e7a872ca89f1431cae68161d (diff) | |
download | nextcloud-server-22e74cf5ac65dde9a6154fcc32a89ba7231cb01f.tar.gz nextcloud-server-22e74cf5ac65dde9a6154fcc32a89ba7231cb01f.zip |
Use the new expression
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Repair/RepairInvalidShares.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/private/Repair/RepairInvalidShares.php b/lib/private/Repair/RepairInvalidShares.php index e0f66049784..04624c910dd 100644 --- a/lib/private/Repair/RepairInvalidShares.php +++ b/lib/private/Repair/RepairInvalidShares.php @@ -99,16 +99,7 @@ class RepairInvalidShares implements IRepairStep { $mask = \OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_UPDATE | \OCP\Constants::PERMISSION_SHARE; $builder = $this->connection->getQueryBuilder(); - - if ($this->connection->getDatabasePlatform() instanceof OraclePlatform) { - $permsFunc = $builder->createFunction( - 'bitand(' . $builder->getColumnName('permissions') . ', ' . $mask . ')' - ); - } else { - $permsFunc = $builder->createFunction( - '(' . $builder->getColumnName('permissions') . ' & ' . $mask . ')' - ); - } + $permsFunc = $builder->expr()->bitwiseAnd('permissions', $mask); $builder ->update('share') ->set('permissions', $permsFunc) |