I am trying to delete existing table inside SQLITE database. The database is open. I can execute select, insert, update data in the table. I can alter the table with both rename and add column. But I can not delete the table using "DROP TABLE IF EXISTS oldtable". The lastError() gives the next error: "database table is locked Unable to fetch row".

Why I can execute every other query possible but DROP TABLE?

Thanks! Luka