Merge branch 'mkirk/fix-grdb-finder'

This commit is contained in:
Michael Kirk 2019-08-15 15:35:23 -06:00
commit 9727df42ce

View File

@ -75,7 +75,7 @@ struct GRDBAttachmentFinderAdapter: AttachmentFinderAdapter {
SELECT \(attachmentColumn: .uniqueId)
FROM \(AttachmentRecord.databaseTableName)
WHERE \(attachmentColumn: .recordType) = \(SDSRecordType.attachmentPointer.rawValue)
AND \(attachmentColumn: .state) = ?
AND \(attachmentColumn: .state) != ?
"""
var result = [String]()
do {