Bug 403040 Places killed all my history >2 days ago (r=sspitzer, a=drivers)

This commit is contained in:
dietrich@mozilla.com 2007-11-09 12:04:13 -08:00
parent c437b244a9
commit c96b2a0062

View File

@ -487,7 +487,7 @@ nsNavHistoryExpire::FindVisits(PRTime aExpireThreshold, PRUint32 aNumToExpire,
nsCOMPtr<mozIStorageStatement> selectStatement;
nsCAutoString sqlDate;
sqlDate.Assign(sqlBase);
sqlDate.AppendLiteral("AND visit_date < ?1 LIMIT ?2");
sqlDate.AppendLiteral("WHERE v.visit_date < ?1 LIMIT ?2");
rv = aConnection->CreateStatement(sqlDate, getter_AddRefs(selectStatement));
NS_ENSURE_SUCCESS(rv, rv);
rv = selectStatement->BindInt64Parameter(0, aExpireThreshold);