1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 13:29:56 +00:00

Fix error

It appears that not all statements can be finalized.
This commit is contained in:
Jeremy Ruston 2024-02-22 12:09:36 +00:00
parent 3fca82321e
commit a33705e348

View File

@ -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();