Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sqlite3: fix error when dropping db with sqlite_sequence table
If column declaration uses `AUTOINCREMENT` keyword, a new column is created into table `sqlite_sequence` which can not be dropped. Currently, `sqlite3.Drop()` resolves tables to be dropped by querying table `sqlite_master` for all tables in the database. However, this query also returns aforementioned `sqlite_sequence` table. This commit adds a filter to the query resolving tables to be dropped. Filter removes `sqlite_sequence` from the query results.
- Loading branch information