You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sqlite: Session methods crash after DatabaseSync is closed and reopened #64782
import{DatabaseSync}from'node:sqlite';constmethod=process.argv[2]??'changeset';constdb=newDatabaseSync(':memory:');db.exec('CREATE TABLE data (id INTEGER PRIMARY KEY)');constsession=db.createSession();db.close();db.open();console.log(`calling session.${method}()`);session[method]();console.log('returned');
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
Closing the database should invalidate associated session wrappers; after reopening, either method should throw an error such as Error: session is not open.
Activity
sqlite: invalidate sessions when closing database
sqlite: invalidate sessions when closing database
sqlite: invalidate sessions when closing database
sqlite: invalidate sessions when closing database