marcoarment / FCModel

An alternative to Core Data for people who like having direct SQL access.
MIT License
1.65k stars 173 forks source link

Save FMDB errors before calling -rollback. #11

Closed jgallagher closed 11 years ago

jgallagher commented 11 years ago

Errors in the migration statements were resulting incorrect exceptions (e.g., "Migration statement 1 failed, code 0: not an error") because lastErrorCode and lastErrorMessage were being overwritten by the successful [db rollback].