Title: sqlite: Raise ProgrammingError when operating on a blob with a closed connection · Issue #6285 · RustPython/RustPython · GitHub
Open Graph Title: sqlite: Raise ProgrammingError when operating on a blob with a closed connection · Issue #6285 · RustPython/RustPython
X Title: sqlite: Raise ProgrammingError when operating on a blob with a closed connection · Issue #6285 · RustPython/RustPython
Description: Currently, the sqlite3 module does not correctly handle cases where a Blob object is accessed after its parent database connection has been closed. Expected Behavior To match CPython's behavior, attempting to read (or perform other opera...
Open Graph Description: Currently, the sqlite3 module does not correctly handle cases where a Blob object is accessed after its parent database connection has been closed. Expected Behavior To match CPython's behavior, at...
X Description: Currently, the sqlite3 module does not correctly handle cases where a Blob object is accessed after its parent database connection has been closed. Expected Behavior To match CPython's behavior...
Opengraph URL: https://github.com/RustPython/RustPython/issues/6285
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sqlite: Raise ProgrammingError when operating on a blob with a closed connection","articleBody":"Currently, the `sqlite3` module does not correctly handle cases where a `Blob` object is accessed after its parent database connection has been closed.\n\n**Expected Behavior**\nTo match CPython's behavior, attempting to `read` (or perform other operations) on a blob after calling `connection.close()` should raise a `sqlite3.ProgrammingError` with the message \"Cannot operate on a closed database\".\n\n**Context**\nThis issue prevents the standard library test `test_blob_closed_db_read` from passing. We need to add a check to ensure the connection is still open before processing blob operations.","author":{"url":"https://github.com/ever0de","@type":"Person","name":"ever0de"},"datePublished":"2025-11-21T12:07:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/6285/RustPython/issues/6285"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bfe9ae5b-fe01-ddbb-dd52-123f7307f5eb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C0E2:1D81B0:1EB5F90:29F3D44:696AC061 |
| html-safe-nonce | ab7cb510deebaf712a28ff856c179d146450059aa093d47e7fd92471be799737 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEUyOjFEODFCMDoxRUI1RjkwOjI5RjNENDQ6Njk2QUMwNjEiLCJ2aXNpdG9yX2lkIjoiODU3ODAxODAzNTIwNzE1OTkwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 03602a27066f557fd63619383f058bd7c22cc768c65737ea10df36877647ba8b |
| hovercard-subject-tag | issue:3651420003 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RustPython/RustPython/6285/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0efd30bac602ce45170c3f1f3a4848ccd4126e3c41b67f4b1346c8ef23ebe601/RustPython/RustPython/issues/6285 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0efd30bac602ce45170c3f1f3a4848ccd4126e3c41b67f4b1346c8ef23ebe601/RustPython/RustPython/issues/6285 |
| og:image:alt | Currently, the sqlite3 module does not correctly handle cases where a Blob object is accessed after its parent database connection has been closed. Expected Behavior To match CPython's behavior, at... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ever0de |
| hostname | github.com |
| expected-hostname | github.com |
| None | 986b6a1d774985095564e64d6963d11f094da3d0e2bfda2ab1a27d63662eb033 |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 89ad2112b9c4e11df6a0c13c8c1f8eedd36b0977 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width