Skip to content

Commit

Permalink
Bug 1390857 - Aborted forced cast in SQLiteHistory.getModifiedHistory (
Browse files Browse the repository at this point in the history
…#3123)

* Bug 1390857 - Aborted forced cast in SQLiteHistory.getModifiedHistory

* Go back to forced unwraps. Now that the query is fixed, these shouldn't come back as nil values anymore.
  • Loading branch information
justindarc committed Sep 7, 2017
1 parent aca07bd commit 91b92c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Storage/SQL/SQLiteHistory.swift
Expand Up @@ -918,8 +918,9 @@ extension SQLiteHistory: SyncableHistory {

private func getModifiedHistory(limit: Int) -> Deferred<Maybe<[Int: Place]>> {
let sql =
"SELECT id, guid, url, title FROM \(TableHistory) " +
"WHERE should_upload = 1 " +
"SELECT id, guid, url, title " +
"FROM \(TableHistory) " +
"WHERE should_upload = 1 AND NOT is_deleted = 1 " +
"ORDER BY id " +
"LIMIT ?"

Expand Down

0 comments on commit 91b92c8

Please sign in to comment.