Skip to content
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

(sqlite3.ProgrammingError) Cannot operate on a closed database. #194

Open
feipengzhao opened this issue Jul 12, 2020 · 0 comments
Open

(sqlite3.ProgrammingError) Cannot operate on a closed database. #194

feipengzhao opened this issue Jul 12, 2020 · 0 comments

Comments

@feipengzhao
Copy link

Excuse me, is this bug not fixed?

When run examples\randomuser-sqlite.py,This bug happened. It is because the sql connection was closed prematurely.

@shacknetisp Use close_with_result rather than closing connections too early.

For this commit, I have a question, that is, the close_with_result variable is set to True, so that the connection will not be closed, but when it is changed to False, should the connection be kept open? If there are many connections?

Submit the issue for the first time, if there is something wrong, please give me some suggestions.Thank you!

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