summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2013-03-26 01:00:15 +0100
committerThomas Tanghus <thomas@tanghus.net>2013-03-26 01:00:15 +0100
commit5f53145eb06e06cf3127f204183bd74e0e479d10 (patch)
tree3b21fa501f76d706a7ee0639310effd39c0b4580 /lib
parent9d618005b6553fa4365865d9cfa430ccb7ad9ab6 (diff)
downloadnextcloud-server-5f53145eb06e06cf3127f204183bd74e0e479d10.tar.gz
nextcloud-server-5f53145eb06e06cf3127f204183bd74e0e479d10.zip
Double quotes to backticks
Diffstat (limited to 'lib')
-rw-r--r--lib/db.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/db.php b/lib/db.php
index 1a4b0a86c61..9d0b2007901 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -638,9 +638,9 @@ class OC_DB {
if( $type == 'sqlite' || $type == 'sqlite3' ) {
// NOTE: For SQLite we have to use this clumsy approach
// otherwise all fieldnames used must have a unique key.
- $query = 'SELECT * FROM "' . $table . '" WHERE ';
+ $query = 'SELECT * FROM `' . $table . '` WHERE ';
foreach($input as $key => $value) {
- $query .= '"' . $key . '" = ? AND ';
+ $query .= '`' . $key . '` = ? AND ';
}
$query = substr($query, 0, strlen($query) - 5);
try {
@@ -656,8 +656,8 @@ class OC_DB {
}
if((int)$result->numRows() === 0) {
- $query = 'INSERT INTO "' . $table . '" ("'
- . implode('","', array_keys($input)) . '") VALUES('
+ $query = 'INSERT INTO `' . $table . '` (`'
+ . implode('`,`', array_keys($input)) . '`) VALUES('
. str_repeat('?,', count($input)-1).'? ' . ')';
} else {
return true;