Places import: LEFT JOIN correctly to pick up unvisited pages.

This commit is contained in:
Richard Newman 2016-08-12 16:08:19 -07:00
parent f85968de88
commit 5ec79f6be3

View file

@ -75,8 +75,8 @@
places-connection
["SELECT DISTINCT p.id AS id, p.url AS url, p.title AS title, p.visit_count, p.last_visit_date, p.guid,
hv.visit_date
FROM moz_places AS p LEFT JOIN moz_historyvisits AS hv
WHERE p.hidden = 0 AND p.id = hv.place_id
FROM moz_places AS p LEFT JOIN moz_historyvisits AS hv ON p.id = hv.place_id
WHERE p.hidden = 0
ORDER BY p.id, hv.visit_date"]))]
(<?
(transact/<transact!