Fix incorrect order of fields in SQL statement.
authorDaira Hopwood <daira@jacaranda.org>
Wed, 19 Aug 2015 14:33:52 +0000 (15:33 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 15 Sep 2015 16:56:07 +0000 (17:56 +0100)
My kingdom for a better SQL DSL.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/backupdb.py

index 20c0d950162ae54818a41b16772ea3fa1a8f0339..f575c66fea53e3cc43e6ae89b14232d48284c71b 100644 (file)
@@ -406,5 +406,5 @@ class MagicFolderDB(BackupDB):
             self.cursor.execute("UPDATE local_files"
                                 " SET size=?, mtime=?, ctime=?, fileid=?, version=?"
                                 " WHERE path=?",
-                                (size, mtime, ctime, fileid, path, version))
+                                (size, mtime, ctime, fileid, version, path))
         self.connection.commit()