From 07236800a7c676140b487a6bc22146921c9c88a2 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Tue, 26 Mar 2013 00:19:23 +0100 Subject: [PATCH] Quote key for SQLite. --- lib/db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db.php b/lib/db.php index cfa3b6cb97..f7c43c2f77 100644 --- a/lib/db.php +++ b/lib/db.php @@ -640,7 +640,7 @@ class OC_DB { // otherwise all fieldnames used must have a unique key. $query = 'SELECT * FROM "' . $table . '" WHERE '; foreach($input as $key => $value) { - $query .= $key . ' = ? AND '; + $query .= '"' .$key . '"' . ' = ? AND '; } $query = substr($query, 0, strlen($query) - 5); try {