]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correct SQL syntax.
authorThomas Tanghus <thomas@tanghus.net>
Mon, 12 Nov 2012 17:45:56 +0000 (18:45 +0100)
committerThomas Tanghus <thomas@tanghus.net>
Mon, 12 Nov 2012 17:45:56 +0000 (18:45 +0100)
lib/db.php

index 48e0ec82da8b68bf0e4ad3ca143deead1820aa0e..2ed624cdd726f7e5b29167dbd26358916e02c9dd 100644 (file)
@@ -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') {