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

git-svn-id: svn://10.0.0.236/trunk@239096 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dietrich%mozilla.com
2007-11-09 20:04:13 +00:00
parent 1b767e7f2a
commit 39fd9d5763

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);