]> source.dussan.org Git - nextcloud-server.git/commitdiff
Change LIMIT in DB query respectively remove where not necessary
authorArthur Schiwon <blizzz@owncloud.com>
Mon, 25 Mar 2013 16:54:10 +0000 (17:54 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Wed, 27 Mar 2013 18:13:14 +0000 (19:13 +0100)
lib/files/cache/upgrade.php

index 47184615b466d1d17f5a81aa250aabff383a3862..ab64a65a285839f30ad2758ab95f66faf558ace9 100644 (file)
@@ -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
                                        ');
                        }