diff options
author | Erlend E. Aasland <erlend.aasland@protonmail.com> | 2023-02-15 05:27:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-15 05:27:16 (GMT) |
commit | 8a2b7ee64d1bde762438b458ea7fe88f054a3a88 (patch) | |
tree | c39e476cd5b2cdd9c348acc60bc3574fc97a9385 /Misc/NEWS.d | |
parent | d777790bab878b8d1a218a1a60894b2823485cca (diff) | |
download | cpython-8a2b7ee64d1bde762438b458ea7fe88f054a3a88.zip cpython-8a2b7ee64d1bde762438b458ea7fe88f054a3a88.tar.gz cpython-8a2b7ee64d1bde762438b458ea7fe88f054a3a88.tar.bz2 |
gh-101693: In sqlite3, deprecate using named placeholders with parameters supplied as a sequence (#101698)
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-02-08-18-20-58.gh-issue-101693.4_LPXj.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-02-08-18-20-58.gh-issue-101693.4_LPXj.rst b/Misc/NEWS.d/next/Library/2023-02-08-18-20-58.gh-issue-101693.4_LPXj.rst new file mode 100644 index 0000000..e436054 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-02-08-18-20-58.gh-issue-101693.4_LPXj.rst @@ -0,0 +1,6 @@ +In :meth:`sqlite3.Cursor.execute`, :exc:`DeprecationWarning` is now emitted +when :ref:`named placeholders <sqlite3-placeholders>` are used together with +parameters supplied as a :term:`sequence` instead of as a :class:`dict`. +Starting from Python 3.14, using named placeholders with parameters supplied +as a sequence will raise a :exc:`~sqlite3.ProgrammingError`. +Patch by Erlend E. Aasland. |