From df13d521834f8b11af79ce8e701314ca985d57b0 Mon Sep 17 00:00:00 2001 From: jingzhe Date: Wed, 28 Dec 2022 14:52:22 +0800 Subject: [PATCH] fix: issue of data missing caused by title being null --- internal/browingdata/history/history.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/browingdata/history/history.go b/internal/browingdata/history/history.go index 25c0df2..52e1e78 100644 --- a/internal/browingdata/history/history.go +++ b/internal/browingdata/history/history.go @@ -73,7 +73,7 @@ func (c *ChromiumHistory) Length() int { type FirefoxHistory []history const ( - queryFirefoxHistory = `SELECT id, url, last_visit_date, title, visit_count FROM moz_places where title not null` + queryFirefoxHistory = `SELECT id, url, COALESCE(last_visit_date, 0), COALESCE(title, ''), visit_count FROM moz_places` closeJournalMode = `PRAGMA journal_mode=off` )