OSDN Git Service

Correct problem where altering a tag for a note may not set the note as dirty.
authorRandy Baumgarte <randy@fbn.cx>
Thu, 5 Apr 2012 12:13:31 +0000 (08:13 -0400)
committerRandy Baumgarte <randy@fbn.cx>
Thu, 5 Apr 2012 12:13:31 +0000 (08:13 -0400)
src/cx/fbn/nevernote/sql/NoteTagsTable.java

index 4abd696..71c113d 100644 (file)
@@ -159,10 +159,11 @@ public class NoteTagsTable {
                        logger.log(logger.MEDIUM, "NoteTags Table insert failed.");             \r
                        logger.log(logger.MEDIUM, query.lastError());\r
                }\r
-               check = query.prepare("Update Note set isDirty=1 where guid=:guid");\r
+               check = query.prepare("Update Note set isDirty=true where guid=:guid");\r
                if (!check)\r
                        logger.log(logger.EXTREME, "RNoteTagsTable.saveNoteTag prepare has failed.");\r
                query.bindValue(":guid", noteGuid);\r
+               query.exec();\r
                if (!check) {\r
                        logger.log(logger.MEDIUM, "RNoteTagsTable.saveNoteTag has failed to set note as dirty.");               \r
                        logger.log(logger.MEDIUM, query.lastError());\r