Skip to content

Ambiguous behaviour of the database when the database is deleted and recreated #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pankaj20aug opened this issue Oct 31, 2011 · 2 comments
Assignees

Comments

@pankaj20aug
Copy link

I use a SqliteOpenHelper to create a database (say "MyDB"). During a particular condition I have to clear the database. So I use context.deleteDatabase("MyDB") to remove the db and recreate it once again. But after this the database starts behaving erratically. For instance while fetching entries (using the same query) from the DB I get correct results during the first 2 times but 3rd time onwards I donot get any data.

On the other hand If I somehow manage to kill my app (using Task killer) and then repeat the above process everything works fine.

I have cross-checked my code a number of times and haven't found couldnot find any bug.

@ghost ghost assigned n8fr8 Nov 1, 2011
@n8fr8
Copy link
Collaborator

n8fr8 commented Nov 1, 2011

I assume this same code works with standard SQLite just fine?

@pankaj20aug
Copy link
Author

Sorry found a bug in the code. closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants