Quote key for SQLite.

remotes/origin/stable6
Thomas Tanghus 13 years ago
parent 1c3f5ba6ef
commit 07236800a7
  1. 2
      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 {

Loading…
Cancel
Save