mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
[3.14] gh-118928: Amend sqlite3 execute*() deprecation notes (GH-135163) (#135342)
Some checks are pending
Tests / (push) Blocked by required conditions
Tests / Windows MSI (push) Blocked by required conditions
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / Check if the ABI has changed (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
Some checks are pending
Tests / (push) Blocked by required conditions
Tests / Windows MSI (push) Blocked by required conditions
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / Check if the ABI has changed (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
(cherry picked from commit ee7345d507
)
Co-authored-by: Erlend E. Aasland <erlend@python.org>
This commit is contained in:
parent
88d8a2e9f0
commit
081421a00e
1 changed files with 11 additions and 11 deletions
|
@ -1492,7 +1492,9 @@ Cursor objects
|
||||||
:type parameters: :class:`dict` | :term:`sequence`
|
:type parameters: :class:`dict` | :term:`sequence`
|
||||||
|
|
||||||
:raises ProgrammingError:
|
:raises ProgrammingError:
|
||||||
If *sql* contains more than one SQL statement.
|
When *sql* contains more than one SQL statement.
|
||||||
|
When :ref:`named placeholders <sqlite3-placeholders>` are used
|
||||||
|
and *parameters* is a sequence instead of a :class:`dict`.
|
||||||
|
|
||||||
If :attr:`~Connection.autocommit` is
|
If :attr:`~Connection.autocommit` is
|
||||||
:data:`LEGACY_TRANSACTION_CONTROL`,
|
:data:`LEGACY_TRANSACTION_CONTROL`,
|
||||||
|
@ -1501,13 +1503,11 @@ Cursor objects
|
||||||
and there is no open transaction,
|
and there is no open transaction,
|
||||||
a transaction is implicitly opened before executing *sql*.
|
a transaction is implicitly opened before executing *sql*.
|
||||||
|
|
||||||
.. deprecated-removed:: 3.12 3.14
|
.. versionchanged:: 3.14
|
||||||
|
|
||||||
:exc:`DeprecationWarning` is emitted if
|
:exc:`ProgrammingError` is emitted if
|
||||||
:ref:`named placeholders <sqlite3-placeholders>` are used
|
:ref:`named placeholders <sqlite3-placeholders>` are used
|
||||||
and *parameters* is a sequence instead of a :class:`dict`.
|
and *parameters* is a sequence instead of a :class:`dict`.
|
||||||
Starting with Python 3.14, :exc:`ProgrammingError` will
|
|
||||||
be raised instead.
|
|
||||||
|
|
||||||
Use :meth:`executescript` to execute multiple SQL statements.
|
Use :meth:`executescript` to execute multiple SQL statements.
|
||||||
|
|
||||||
|
@ -1529,8 +1529,10 @@ Cursor objects
|
||||||
:type parameters: :term:`iterable`
|
:type parameters: :term:`iterable`
|
||||||
|
|
||||||
:raises ProgrammingError:
|
:raises ProgrammingError:
|
||||||
If *sql* contains more than one SQL statement,
|
When *sql* contains more than one SQL statement
|
||||||
or is not a DML statement.
|
or is not a DML statement,
|
||||||
|
When :ref:`named placeholders <sqlite3-placeholders>` are used
|
||||||
|
and the items in *parameters* are sequences instead of :class:`dict`\s.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
|
@ -1554,14 +1556,12 @@ Cursor objects
|
||||||
|
|
||||||
.. _RETURNING clauses: https://www.sqlite.org/lang_returning.html
|
.. _RETURNING clauses: https://www.sqlite.org/lang_returning.html
|
||||||
|
|
||||||
.. deprecated-removed:: 3.12 3.14
|
.. versionchanged:: 3.14
|
||||||
|
|
||||||
:exc:`DeprecationWarning` is emitted if
|
:exc:`ProgrammingError` is emitted if
|
||||||
:ref:`named placeholders <sqlite3-placeholders>` are used
|
:ref:`named placeholders <sqlite3-placeholders>` are used
|
||||||
and the items in *parameters* are sequences
|
and the items in *parameters* are sequences
|
||||||
instead of :class:`dict`\s.
|
instead of :class:`dict`\s.
|
||||||
Starting with Python 3.14, :exc:`ProgrammingError` will
|
|
||||||
be raised instead.
|
|
||||||
|
|
||||||
.. method:: executescript(sql_script, /)
|
.. method:: executescript(sql_script, /)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue