mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-03-15 11:11:24 -07:00
Fix error
It appears that not all statements can be finalized.
This commit is contained in:
parent
3fca82321e
commit
a33705e348
1 changed files with 3 additions and 1 deletions
|
|
@ -48,7 +48,9 @@ function SqlTiddlerDatabase(options) {
|
|||
|
||||
SqlTiddlerDatabase.prototype.close = function() {
|
||||
for(const sql in this.statements) {
|
||||
this.statements[sql].finalize();
|
||||
if(this.statements[sql].finalize) {
|
||||
this.statements[sql].finalize();
|
||||
}
|
||||
}
|
||||
this.statements = Object.create(null);
|
||||
this.db.close();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue