TimotheeJeannin / ProviGen

Easily make a ContentProvider from an annotated ContractClass.
MIT License
243 stars 27 forks source link

@Unique annotation causing database to be corrupted #23

Closed jdegroot closed 10 years ago

jdegroot commented 10 years ago

I've used the @Unique(Constraint.OnConflict.IGNORE) annotation on a table in my database and used an extracted copy of this database to be shipped with my app. On some devices, this database gave an database corrputed error when inserting data into the table with the constraint. The error occured for me on an HTC Desire running Android 2.3.3.

BigMichi1 commented 10 years ago

can you provide such a "corrupted" database?

jdegroot commented 10 years ago

I've since found out that this is not ProviGen's fault but a more general problem with this constraint in my database. The databases that I created outside of ProviGen had the same issues, so this issue can be closed.

TimotheeJeannin commented 10 years ago

Thank you for taking the time to update the issue. :)