From 7f74f08808ef37be86c71b0c52e511aa55fe5e49 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 30 Mar 2013 23:49:55 +0100 Subject: [PATCH] Add missing backticks. Especially at user without "" PostgreSQL likes to fail. --- core/ajax/update.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ajax/update.php b/core/ajax/update.php index e40d0def4e4..31b8c0dbb65 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -37,8 +37,8 @@ if (OC::checkUpgrade(false)) { */ function __doFileCacheUpgrade($watcher) { $query = \OC_DB::prepare(' - SELECT DISTINCT user - FROM`*PREFIX*fscache` + SELECT DISTINCT `user` + FROM `*PREFIX*fscache` '); $result = $query->execute(); $users = $result->fetchAll();