I am using Ormlite in one of my projects and came across a peculiar behavior. Anytime I use UpdateBuilder.update() to update my tables, it always returns 0 instead of the number of rows that got affected. I manually checked the database to see that the rows actually got updated but it is just that the returned row count is always zero.
I came across this post by Ormlite's author Gray. He seems to have issues only with the delete statements but update is messed up for me (didn't check delete's return value).
Any one knows the reason for this behavior or is it a limitation of the sqlite version used in Android?
Aucun commentaire:
Enregistrer un commentaire