Skip to content
Snippets Groups Projects
Commit e75406e7 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

PostreSQL compatibility, fixes #2666

parent 40627a05
No related branches found
No related tags found
No related merge requests found
......@@ -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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment