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: disallow using a sequence of params with named placeholders #118928

Closed
erlend-aasland opened this issue May 10, 2024 · 0 comments · Fixed by #118929
Closed

sqlite3: disallow using a sequence of params with named placeholders #118928

erlend-aasland opened this issue May 10, 2024 · 0 comments · Fixed by #118929
Assignees
Labels
topic-sqlite3 type-feature A feature request or enhancement

Comments

@erlend-aasland
Copy link
Contributor

erlend-aasland commented May 10, 2024

Feature or enhancement

Follow-up of...:

Based on the discussion in the above linked Discourse topic, I propose to now issue a deprecation warning if sequences are used with named placeholders. The deprecation warning should inform that from Python 3.14 and onward, sqlite3.ProgrammingError will be raised instead.

3.14 dev is now opened, so let's convert the deprecation warning to a programming error sooner than later.

Linked PRs

@erlend-aasland erlend-aasland added type-feature A feature request or enhancement topic-sqlite3 labels May 10, 2024
@erlend-aasland erlend-aasland self-assigned this May 10, 2024
erlend-aasland added a commit to erlend-aasland/cpython that referenced this issue May 10, 2024
erlend-aasland added a commit that referenced this issue May 14, 2024
…ers (#118929)

Follow-up of gh-101693. The previous DeprecationWarning is replaced with 
raising sqlite3.ProgrammingError.

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
erlend-aasland added a commit to erlend-aasland/cpython that referenced this issue May 20, 2024
erlend-aasland added a commit to erlend-aasland/cpython that referenced this issue May 20, 2024
The regression was never part of an official release.
erlend-aasland added a commit that referenced this issue May 20, 2024
The regression in d8e0e00 was never part of an official release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-sqlite3 type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant