]> spindle.queued.net Git - midori/commitdiff
Select date for all history queries, even filtered
authorChristian Dywan <christian@twotoasts.de>
Tue, 23 Nov 2010 23:37:01 +0000 (00:37 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 23 Nov 2010 23:37:01 +0000 (00:37 +0100)
Deleting requires a date to work.

panels/midori-history.c

index 34452a8e96ec634b4bdccf14086c18e240596736..dce2fd1497a0a8a3f012c4acc53f6f4126740c0a 100644 (file)
@@ -212,11 +212,11 @@ midori_history_read_from_db (MidoriHistory* history,
         gchar* filterstr;
 
         sqlcmd = "SELECT * FROM ("
-                 "    SELECT uri, title, day FROM history"
+                 "    SELECT uri, title, day, date FROM history"
                  "    WHERE uri LIKE ?1 OR title LIKE ?1 GROUP BY uri "
                  "UNION ALL "
                  "    SELECT replace (uri, '%s', keywords) AS uri, "
-                 "    keywords AS title, day FROM search "
+                 "    keywords AS title, day, 0 AS date FROM search "
                  "    WHERE uri LIKE ?1 OR keywords LIKE ?1 GROUP BY uri "
                  ") ORDER BY day ASC";
         result = sqlite3_prepare_v2 (db, sqlcmd, -1, &statement, NULL);