Quote key for SQLite.
This commit is contained in:
parent
1c3f5ba6ef
commit
07236800a7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue