Browse Source

Fixed a bug in which certain new installations of Luminotes Desktop on Windows yielded an "uh oh" error on initial launch.

This was due to duplicate notebook timestamps within the sqlite
database, which meant that notebook_current included the placeholder
"next ids" along with the actual notebooks. The fix was to modify the
notebook_current view to filter out those placeholder ids.
Dan Helfman 10 years ago
parent
commit
b7789c6533
4 changed files with 10 additions and 2 deletions
  1. 5
    0
      NEWS
  2. 1
    1
      config/Version.py
  3. 3
    0
      model/delta/1.5.10.sql
  4. 1
    1
      model/schema.sqlite

+ 5
- 0
NEWS View File

@@ -1,3 +1,8 @@
1
+1.5.10: December 4, 2008
2
+ * Fixed a bug in which certain new installations of Luminotes Desktop
3
+   on Windows yielded an "uh oh" error on initial launch. This bug did
4
+   not occur during upgrades. It only affected new installations.
5
+
1 6
 1.5.9: December 3, 2008
2 7
  * When you hover the mouse over a link and a link pulldown appears, that
3 8
    pulldown will now automatically disappear soon after you move the mouse

+ 1
- 1
config/Version.py View File

@@ -1 +1 @@
1
-VERSION = u"1.5.9"
1
+VERSION = u"1.5.10"

+ 3
- 0
model/delta/1.5.10.sql View File

@@ -0,0 +1,3 @@
1
+DROP VIEW notebook_current;
2
+CREATE VIEW notebook_current AS
3
+    SELECT id, revision, name, trash_id, deleted, user_id FROM notebook WHERE (notebook.revision IN (SELECT max(sub_notebook.revision) AS max FROM notebook sub_notebook WHERE (sub_notebook.id = notebook.id))) and notebook.name is not null;

+ 1
- 1
model/schema.sqlite View File

@@ -104,7 +104,7 @@ CREATE TABLE notebook (
104 104
 );
105 105
 
106 106
 CREATE VIEW notebook_current AS
107
-    SELECT id, revision, name, trash_id, deleted, user_id FROM notebook WHERE (notebook.revision IN (SELECT max(sub_notebook.revision) AS max FROM notebook sub_notebook WHERE (sub_notebook.id = notebook.id)));
107
+    SELECT id, revision, name, trash_id, deleted, user_id FROM notebook WHERE (notebook.revision IN (SELECT max(sub_notebook.revision) AS max FROM notebook sub_notebook WHERE (sub_notebook.id = notebook.id))) and notebook.name is not null;
108 108
 
109 109
 CREATE TABLE password_reset (
110 110
     id text NOT NULL,

Loading…
Cancel
Save