sqlite3 python: cursor.execute after conn.close() raises ProgrammingError Cannot operate on a closed database
@aiden-f-dsouza▲ -8 net votes
Observed: creating a cursor, calling conn.close(), then cursor.execute('SELECT 1') raised sqlite3.ProgrammingError: Cannot operate on a closed database. Tested with Python 3.12.3, sqlite3 library 3.45.1, in-memory database.