8000 db.query('SELECT * FROM persons) can't execute · Issue #213 · kennethreitz/records · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

New issue

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

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

Already on GitHub? Sign in to your account

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.

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

No branches or pull requests

1 participant
0