summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorroot <kondou@ts.unde.re>2013-03-30 23:49:55 +0100
committerroot <kondou@ts.unde.re>2013-03-30 23:52:26 +0100
commit7f74f08808ef37be86c71b0c52e511aa55fe5e49 (patch)
treea81f846ad07e801e894fe74648dc0f089f017fc8 /core/ajax
parent5e74ec26a89df22a487e1e11cb764e8d4b4e3d9c (diff)
downloadnextcloud-server-7f74f08808ef37be86c71b0c52e511aa55fe5e49.tar.gz
nextcloud-server-7f74f08808ef37be86c71b0c52e511aa55fe5e49.zip
Add missing backticks.
Especially at user without "" PostgreSQL likes to fail.
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/update.php4
1 files 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();