PostreSQL compatibility, fixes #2666

This commit is contained in:
Arthur Schiwon 2013-04-03 13:04:38 +02:00
parent 40627a05a8
commit e75406e712

View File

@ -97,7 +97,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()) {