aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-03-26 00:19:23 +0100
committerThomas Tanghus <thomas@tanghus.net>2013-03-26 00:19:23 +0100
commit07236800a7c676140b487a6bc22146921c9c88a2 (patch)
tree9c44f9f82bb1a5a7c01edb9dd87e3a1e5b3db2db /lib
parent1c3f5ba6ef9d2416d1b83d802ea83fa1df027805 (diff)
downloadnextcloud-server-07236800a7c676140b487a6bc22146921c9c88a2.tar.gz
nextcloud-server-07236800a7c676140b487a6bc22146921c9c88a2.zip
Quote key for SQLite.
Diffstat (limited to 'lib')
-rw-r--r--lib/db.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/db.php b/lib/db.php
index cfa3b6cb979..f7c43c2f77f 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 {