From 42b871dcf1353ceddf9d98a960b133fecddbff6f Mon Sep 17 00:00:00 2001
From: Thomas Tanghus <thomas@tanghus.net>
Date: Mon, 12 Nov 2012 18:45:56 +0100
Subject: [PATCH] Correct SQL syntax.

---
 lib/db.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/db.php b/lib/db.php
index 48e0ec82da..2ed624cdd7 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') {
-- 
GitLab