Merge lp:~voluntatefaber/lingo-dictionary/recents-fixes into lp:lingo-dictionary

Proposed by Andrea Basso
Status: Merged
Approved by: Cody Garver
Approved revision: 127
Merged at revision: 153
Proposed branch: lp:~voluntatefaber/lingo-dictionary/recents-fixes
Merge into: lp:lingo-dictionary
Diff against target: 12 lines (+1/-1)
1 file modified
src/lingo-database.vala (+1/-1)
To merge this branch: bzr merge lp:~voluntatefaber/lingo-dictionary/recents-fixes
Reviewer Review Type Date Requested Status
Cody Garver (community) Approve
Review via email: mp+95754@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Cody Garver (codygarver) :
review: Approve
Revision history for this message
Cody Garver (codygarver) wrote :

This has been superseded by commit 152.

review: Disapprove
Revision history for this message
Cody Garver (codygarver) wrote :

Ignore that comment, it's on the wrong branch..

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/lingo-database.vala'
2--- src/lingo-database.vala 2012-02-11 19:39:21 +0000
3+++ src/lingo-database.vala 2012-03-03 22:37:37 +0000
4@@ -303,7 +303,7 @@
5 execute_statement(stmt);
6
7 // Deep magic begins here ...
8- execute_sql ("DELETE FROM recent WHERE id = CASE WHEN (SELECT COUNT(word) FROM recent) > 10 THEN (SELECT MIN(id) FROM recent) ELSE (SELECT (MIN(word) + 1) FROM recent) END");
9+ execute_sql ("DELETE FROM recent WHERE id = CASE WHEN (SELECT COUNT(word) FROM recent) > 10 THEN (SELECT MIN(id) FROM recent) ELSE (SELECT (-1) FROM recent) END");
10 }
11
12 public void clear_recents () {

Subscribers

People subscribed via source and target branches

to all changes: