]> source.dussan.org Git - nextcloud-server.git/commitdiff
PostreSQL compatibility, fixes #2666
authorArthur Schiwon <blizzz@owncloud.com>
Wed, 3 Apr 2013 11:04:38 +0000 (13:04 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Wed, 3 Apr 2013 11:04:38 +0000 (13:04 +0200)
lib/files/cache/legacy.php

index efe441c56bc7740f0affd8ea8ad7f3dade00c3b2..7604d5eb85a9cee4274cf53da15703d0e9ccd6ea 100644 (file)
@@ -90,7 +90,7 @@ class Legacy {
                        $relativePath = '';
                }
                if(is_null($query)){
-                       $query = \OC_DB::prepare('SELECT `propertyvalue` FROM `*PREFIX*properties` WHERE `userid` = ? AND propertypath = ? AND propertyname = "{DAV:}getetag"');
+                       $query = \OC_DB::prepare('SELECT `propertyvalue` FROM `*PREFIX*properties` WHERE `userid` = ? AND `propertypath` = ? AND `propertyname` = \'{DAV:}getetag\'');
                }
                $result = $query->execute(array($user, '/' . $relativePath));
                if ($row = $result->fetchRow()) {