René's URL Explorer Experiment


Title: gh-89022: Improve sqlite3 exceptions related to binding params and API misuse by erlend-aasland · Pull Request #91572 · python/cpython · GitHub

Open Graph Title: gh-89022: Improve sqlite3 exceptions related to binding params and API misuse by erlend-aasland · Pull Request #91572 · python/cpython

X Title: gh-89022: Improve sqlite3 exceptions related to binding params and API misuse by erlend-aasland · Pull Request #91572 · python/cpython

Description: Map SQLITE_MISUSE to InterfaceError instead of ProgrammingError Raise more accurate exceptions when binding parameters fail Fixes gh-89022

Open Graph Description: Map SQLITE_MISUSE to InterfaceError instead of ProgrammingError Raise more accurate exceptions when binding parameters fail Fixes gh-89022

X Description: Map SQLITE_MISUSE to InterfaceError instead of ProgrammingError Raise more accurate exceptions when binding parameters fail Fixes gh-89022

Opengraph URL: https://github.com/python/cpython/pull/91572

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:28881506-1d5d-af41-6ddc-06d4287f428c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idABC4:1860A8:185109F:218E244:696A9EB3
html-safe-nonced96169b5452d8efe8a284549c2b6616dc005e0a6f2cdbe3b191c3a16e299d0d2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkM0OjE4NjBBODoxODUxMDlGOjIxOEUyNDQ6Njk2QTlFQjMiLCJ2aXNpdG9yX2lkIjoiNDczOTg3NTcxNzM4Mzg2MDk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac873d572419ce20496ac3065644c7c83630b4c66976f3ab23e2a7243e253a0a21
hovercard-subject-tagpull_request:910907717
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/91572/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/3eb3b2e983ed5777a302207d660d18795ac24a3449262a4c7350299632f99751/python/cpython/pull/91572
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3eb3b2e983ed5777a302207d660d18795ac24a3449262a4c7350299632f99751/python/cpython/pull/91572
og:image:altMap SQLITE_MISUSE to InterfaceError instead of ProgrammingError Raise more accurate exceptions when binding parameters fail Fixes gh-89022
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameerlend-aasland
hostnamegithub.com
expected-hostnamegithub.com
Nonec0d8175e41e0e55b9e984c935b24b808cabab919dd3174aa45dac3ef503ed1af
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release99aab454e5ddc8df30805fb76c114c3008a15842
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/91572#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F91572
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F91572
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/91572
Reloadhttps://github.com/python/cpython/pull/91572
Reloadhttps://github.com/python/cpython/pull/91572
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/91572
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/91572
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/91572#issue-comment-box
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/cpython/tree/main
erlend-aasland:sqlite-misusehttps://github.com/erlend-aasland/cpython/tree/sqlite-misuse
gh-89022: Improve sqlite3 exceptions related to binding params and API misuse https://github.com/python/cpython/pull/91572#top
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/cpython/tree/main
erlend-aasland:sqlite-misusehttps://github.com/erlend-aasland/cpython/tree/sqlite-misuse
Conversation 10 https://github.com/python/cpython/pull/91572
Commits 9 https://github.com/python/cpython/pull/91572/commits
Checks 0 https://github.com/python/cpython/pull/91572/checks
Files changed https://github.com/python/cpython/pull/91572/files
Please reload this pagehttps://github.com/python/cpython/pull/91572
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Apr 15, 2022https://github.com/python/cpython/pull/91572#issue-1205645471
Please reload this pagehttps://github.com/python/cpython/pull/91572
gh-89022https://github.com/python/cpython/issues/89022
Please reload this pagehttps://github.com/python/cpython/pull/91572
pythongh-89022https://github.com/python/cpython/issues/89022
: Map SQLITE_MISUSE to sqlite3.InterfaceErrorhttps://github.com/python/cpython/pull/91572/commits/2868daf3d0be10aae45f47b2b3d093ecbccc6acf
2868dafhttps://github.com/python/cpython/pull/91572/commits/2868daf3d0be10aae45f47b2b3d093ecbccc6acf
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
berkerpeksaghttps://github.com/berkerpeksag
code ownerhttps://github.com/python/cpython/blob/72965981d1128b3923dad5e850c8cff626ae4dc7/.github/CODEOWNERS#L101
April 15, 2022 15:02https://github.com/python/cpython/pull/91572#event-6440841953
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Apr 15, 2022https://github.com/python/cpython/pull/91572#event-6440842154
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
serhiy-storchakahttps://github.com/serhiy-storchaka
April 15, 2022 15:03https://github.com/python/cpython/pull/91572#event-6440843070
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Apr 15, 2022https://github.com/python/cpython/pull/91572#issuecomment-1100161920
Please reload this pagehttps://github.com/python/cpython/pull/91572
https://sqlite.org/rescode.html#misusehttps://sqlite.org/rescode.html#misuse
Please reload this pagehttps://github.com/python/cpython/pull/91572
Add NEWShttps://github.com/python/cpython/pull/91572/commits/cfba3331077fad5007bd08ae4d093fe6e5abcb32
cfba333https://github.com/python/cpython/pull/91572/commits/cfba3331077fad5007bd08ae4d093fe6e5abcb32
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Apr 15, 2022 https://github.com/python/cpython/pull/91572#ref-pullrequest-1205636169
gh-69093: improve sqlite3.Connection.blobopen() error handling #91571 https://github.com/python/cpython/pull/91571
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
malemburghttps://github.com/malemburg
May 1, 2022 23:26https://github.com/python/cpython/pull/91572#event-6530272661
erlend-aaslandhttps://github.com/erlend-aasland
May 1, 2022 20:41https://github.com/python/cpython/pull/91572#commits-pushed-c32e2e6
https://github.com/erlend-aasland
Raise better errors when binding parameters fail.https://github.com/python/cpython/pull/91572/commits/c32e2e6dee13f94360ab6eb3cf938d6f7fc021b5
c32e2e6https://github.com/python/cpython/pull/91572/commits/c32e2e6dee13f94360ab6eb3cf938d6f7fc021b5
https://github.com/erlend-aasland
Expand NEWS entryhttps://github.com/python/cpython/pull/91572/commits/268e4e3b28d300456573bed56e96cd09189f6cb9
268e4e3https://github.com/python/cpython/pull/91572/commits/268e4e3b28d300456573bed56e96cd09189f6cb9
https://github.com/erlend-aasland
Sync with mainhttps://github.com/python/cpython/pull/91572/commits/d7962c2095b994ec4689072dd5b51ec2f50f582a
d7962c2https://github.com/python/cpython/pull/91572/commits/d7962c2095b994ec4689072dd5b51ec2f50f582a
https://github.com/erlend-aasland
Improve more bind exceptionshttps://github.com/python/cpython/pull/91572/commits/c83172a961213ec8f29e6050f562b5b42120c0b5
c83172ahttps://github.com/python/cpython/pull/91572/commits/c83172a961213ec8f29e6050f562b5b42120c0b5
https://github.com/erlend-aasland
pysqlite_statement_bind_parameter is local to statement.c, so make it…https://github.com/python/cpython/pull/91572/commits/76f7ed12fddf07180cd683757f0eb0b969bb77c9
76f7ed1https://github.com/python/cpython/pull/91572/commits/76f7ed12fddf07180cd683757f0eb0b969bb77c9
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
May 2, 2022https://github.com/python/cpython/pull/91572#issuecomment-1114455003
Please reload this pagehttps://github.com/python/cpython/pull/91572
Please reload this pagehttps://github.com/python/cpython/pull/91572
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
May 2, 2022https://github.com/python/cpython/pull/91572#event-6530791157
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
May 2, 2022 https://github.com/python/cpython/pull/91572#pullrequestreview-959352112
View reviewed changes https://github.com/python/cpython/pull/91572/files/76f7ed12fddf07180cd683757f0eb0b969bb77c9
JelleZijlstrahttps://github.com/JelleZijlstra
https://github.com/python/cpython/pull/91572#pullrequestreview-959352112
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://peps.python.org/pep-0249/#exceptionshttps://peps.python.org/pep-0249/#exceptions
Please reload this pagehttps://github.com/python/cpython/pull/91572
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
May 2, 2022https://github.com/python/cpython/pull/91572#event-6535107475
https://github.com/malemburg
malemburghttps://github.com/malemburg
May 3, 2022https://github.com/python/cpython/pull/91572#issuecomment-1116488640
prepared statementhttps://sqlite.org/c3ref/stmt.html
finalizedhttps://sqlite.org/c3ref/finalize.html
Please reload this pagehttps://github.com/python/cpython/pull/91572
https://github.com/malemburg
malemburghttps://github.com/malemburg
May 3, 2022 https://github.com/python/cpython/pull/91572#pullrequestreview-960917040
View reviewed changes https://github.com/python/cpython/pull/91572/files/76f7ed12fddf07180cd683757f0eb0b969bb77c9
malemburghttps://github.com/malemburg
https://github.com/python/cpython/pull/91572#pullrequestreview-960917040
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/91572
https://github.com/malemburg
malemburghttps://github.com/malemburg
May 3, 2022https://github.com/python/cpython/pull/91572#issuecomment-1116495338
Please reload this pagehttps://github.com/python/cpython/pull/91572
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
May 3, 2022https://github.com/python/cpython/pull/91572#issuecomment-1116495813
prepared statementhttps://sqlite.org/c3ref/stmt.html
finalizedhttps://sqlite.org/c3ref/finalize.html
Please reload this pagehttps://github.com/python/cpython/pull/91572
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
May 3, 2022https://github.com/python/cpython/pull/91572#issuecomment-1116497149
https://user-images.githubusercontent.com/13780613/166554232-8cd7a41c-b8dc-49cc-9eef-727566a5065e.png
Please reload this pagehttps://github.com/python/cpython/pull/91572
erlend-aaslandhttps://github.com/erlend-aasland
May 3, 2022 15:58https://github.com/python/cpython/pull/91572#commits-pushed-6ae7bde
https://github.com/erlend-aasland
Merge branch 'main' into sqlite-misusehttps://github.com/python/cpython/pull/91572/commits/6ae7bdef7538654f995bb6bee271cac330eb390f
6ae7bdehttps://github.com/python/cpython/pull/91572/commits/6ae7bdef7538654f995bb6bee271cac330eb390f
https://github.com/erlend-aasland
Merge branch 'main' into sqlite-misusehttps://github.com/python/cpython/pull/91572/commits/505170892318e0d8af62a77c674075cef111fb9d
5051708https://github.com/python/cpython/pull/91572/commits/505170892318e0d8af62a77c674075cef111fb9d
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
May 3, 2022https://github.com/python/cpython/pull/91572#issuecomment-1116710612
Please reload this pagehttps://github.com/python/cpython/pull/91572
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
May 3, 2022https://github.com/python/cpython/pull/91572#event-6544636062
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
May 4, 2022https://github.com/python/cpython/pull/91572#issuecomment-1116897508
Please reload this pagehttps://github.com/python/cpython/pull/91572
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
090819ehttps://github.com/python/cpython/commit/090819ec5faea2d0c2cdf6bcfdbbc9df144a8aad
May 4, 2022https://github.com/python/cpython/pull/91572#event-6548431603
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
May 4, 2022https://github.com/python/cpython/pull/91572#event-6548431895
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
May 4, 2022 14:38https://github.com/python/cpython/pull/91572#event-6549086854
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
May 18, 2022 https://github.com/python/cpython/pull/91572#ref-issue-1199063091
Improve some sqlite3 errors #89022 https://github.com/python/cpython/issues/89022
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F91572
https://github.com/JelleZijlstra
JelleZijlstra https://github.com/JelleZijlstra
https://github.com/python/cpython/pull/91572/files/76f7ed12fddf07180cd683757f0eb0b969bb77c9
https://github.com/berkerpeksag
berkerpeksag https://github.com/berkerpeksag
https://github.com/serhiy-storchaka
serhiy-storchaka https://github.com/serhiy-storchaka
https://github.com/malemburg
malemburg https://github.com/malemburg
https://github.com/JelleZijlstra
JelleZijlstra https://github.com/JelleZijlstra
Improve some sqlite3 errors https://github.com/python/cpython/issues/89022
Please reload this pagehttps://github.com/python/cpython/pull/91572
https://github.com/erlend-aasland
https://github.com/malemburg
https://github.com/JelleZijlstra
https://github.com/bedevere-bot
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.