mirror of
https://github.com/nextcloud/server.git
synced 2026-03-29 13:53:55 -04:00
Change LIMIT in DB query respectively remove where not necessary
This commit is contained in:
parent
18554059a4
commit
5fc276602a
1 changed files with 1 additions and 2 deletions
3
lib/files/cache/upgrade.php
vendored
3
lib/files/cache/upgrade.php
vendored
|
|
@ -176,7 +176,7 @@ class Upgrade {
|
|||
WHERE `propertyname` = \'{DAV:}getetag\'
|
||||
AND `propertypath` = ?
|
||||
AND `userid` = ?
|
||||
LIMIT 1');
|
||||
', 1);
|
||||
}
|
||||
$result = $queryGetETag->execute(array($legacyPath, $user));
|
||||
$etag = $result->fetchOne();
|
||||
|
|
@ -188,7 +188,6 @@ class Upgrade {
|
|||
WHERE `propertyname` = \'{DAV:}getetag\'
|
||||
AND `propertypath` = ?
|
||||
AND `userid` = ?
|
||||
LIMIT 1
|
||||
');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue