Skip to content

getting exception on iterator #1036

Closed
Closed
@avnerbarr

Description

@avnerbarr

getting a crash here when the DB is open in 2 processes:

Thread 1: Fatal error: 'try!' expression unexpectedly raised an error: database is locked (code: 5)
extension FailableIterator {
    public func next() -> Element? {
        return try! failableNext()
    }
}

// when iterating
for row in try db.prepare(...) {
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions