[niepce] library: Fix a SQL syntax error



commit 9e883654d0a2c96cc20d3dfc3580b0bc4084a7a2
Author: Hubert Figuière <hub figuiere net>
Date:   Tue Oct 9 23:34:21 2018 -0400

    library: Fix a SQL syntax error

 src/engine/db/library.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/engine/db/library.rs b/src/engine/db/library.rs
index fcc07f2..f96e334 100644
--- a/src/engine/db/library.rs
+++ b/src/engine/db/library.rs
@@ -250,7 +250,7 @@ impl Library {
         if let Some(ref conn) = self.dbconn {
             let filetype: i32 = libfile::FileType::RAW_JPEG.into();
             if let Ok(c) = conn.execute(
-                "UPDATE files SET jpeg_file=:1 file_type=:3 WHERE id=:2;",
+                "UPDATE files SET jpeg_file=:1, file_type=:3 WHERE id=:2;",
                 &[&fsfile_id, &file_id, &filetype],
             ) {
                 if c == 1 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]