diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-11-12 18:45:56 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-11-12 18:45:56 +0100 |
commit | 42b871dcf1353ceddf9d98a960b133fecddbff6f (patch) | |
tree | c0466417103eae9ffc0df8d94d88202c06a741db | |
parent | 82e010c51ceeb54f35f1f842de664e6734b00382 (diff) | |
download | nextcloud-server-42b871dcf1353ceddf9d98a960b133fecddbff6f.tar.gz nextcloud-server-42b871dcf1353ceddf9d98a960b133fecddbff6f.zip |
Correct SQL syntax.
-rw-r--r-- | lib/db.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/db.php b/lib/db.php index 48e0ec82da8..2ed624cdd72 100644 --- a/lib/db.php +++ b/lib/db.php @@ -559,7 +559,7 @@ class OC_DB { $query = ''; // differences in escaping of table names ('`' for mysql) and getting the current timestamp if( $type == 'sqlite' || $type == 'sqlite3' ) { - $query = 'REPLACE OR INSERT INTO "' . $table . '" ("' + $query = 'INSERT OR REPLACE INTO "' . $table . '" ("' . implode('","', array_keys($input)) . '") VALUES("' . implode('","', array_values($input)) . '")'; } elseif( $type == 'pgsql' || $type == 'oci' || $type == 'mysql') { |