Merge pull request #191 from zhe6652/master

fix: issue of data missing caused by title being null
This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2022-12-29 13:17:24 +08:00
committed by GitHub
+1 -1
View File
@@ -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`
)