Closed mohamede1945 closed 7 years ago
i saw this crash before merging #62, but now i can't repro anymore.
tried also checking the value of connection.run(update)
, and it seems to be correct when i run it.
can we close this?
Yes, it doesn't crash, but it still throws a swift error. The problem is that if there are 2 records in the database with pages (3 and 4) then when the query is to update the record for page 4 to set it to page 3, the SQLite will throw an exception. I will try to fix it.
couple of ideas:
on conflict replace
(see here)I already fixed it here https://github.com/quran/quran-ios/pull/63 I also made the app crashes on debug build if there is a swift error.
awesome, jazakAllah khairan!
You thank you so much! rabena yekremek :)
After applying https://github.com/quran/quran-ios/pull/60 now there is a crash when the user opens the Quran from one of the last pages.
Steps to reproduce:
I think the crash in function