Fix crash with empty WHERE in SQL query

This commit is contained in:
Igor Solomennikov 2022-10-12 06:57:06 -07:00 committed by GitHub
parent 1189b563ca
commit d4d68e266a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1046,6 +1046,9 @@ public class GRDBInteractionFinder: NSObject, InteractionFinderAdapter {
)
"""
}
guard !storyFilters.isEmpty else {
return false
}
let sql = """
SELECT EXISTS(