views:

15

answers:

1

hey my problem is when i try to update my database it goes through the update query fine but then it crashes giving me a error in the console saying "Error while updating 'Database is locked'". Does any one have a clue why is it so?

A: 

Usually because your database is in another transaction. For example, if you have another thread going or another connection and it is in a transaction.

MPelletier
yaa you were right. Actually i had opened my database in several methods but dint close it. Dat was the catch.