Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

db.query('SELECT * FROM persons) can't execute #213

Open
schlsj opened this issue Jul 8, 2021 · 0 comments
Open

db.query('SELECT * FROM persons) can't execute #213

schlsj opened this issue Jul 8, 2021 · 0 comments

Comments

@schlsj
Copy link

schlsj commented Jul 8, 2021

when execute examples/randomuser-sqlite.py, python report 'Cannot operate on a closed database'.

when rows = db.query(...) is executed, maybe the internal connection is disposed. but the result(rows) is a generator, not data. when use result(rows) to do something, it use internal connection to read data, then error occur.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant