From 365ca9180f04b153e2ae76f79545fac5694b18ed Mon Sep 17 00:00:00 2001 From: Ioannis G Date: Thu, 3 Jul 2014 21:10:48 +0300 Subject: [PATCH] improved Firefox bookmark-parsing query now gets bookmark title from moz_bookmarks table instead of moz_places --- Plugins/Wox.Plugin.BrowserBookmark/FirefoxBookmarks.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Plugins/Wox.Plugin.BrowserBookmark/FirefoxBookmarks.cs b/Plugins/Wox.Plugin.BrowserBookmark/FirefoxBookmarks.cs index 36c38f2fd8..b9a95969b7 100644 --- a/Plugins/Wox.Plugin.BrowserBookmark/FirefoxBookmarks.cs +++ b/Plugins/Wox.Plugin.BrowserBookmark/FirefoxBookmarks.cs @@ -8,12 +8,12 @@ namespace Wox.Plugin.BrowserBookmark { public class FirefoxBookmarks { - private const string queryAllBookmarks = @"SELECT url, title + private const string queryAllBookmarks = @"SELECT moz_places.url, moz_bookmarks.title FROM moz_places - WHERE id in ( - SELECT bm.fk FROM moz_bookmarks bm WHERE bm.fk NOT NULL - ) - ORDER BY visit_count DESC + INNER JOIN moz_bookmarks ON ( + moz_bookmarks.fk NOT NULL AND moz_bookmarks.fk = moz_places.id + ) + ORDER BY moz_places.visit_count DESC "; private const string dbPathFormat = "Data Source ={0};Version=3;New=False;Compress=True;";