@@ -1482,7 +1482,9 @@ Cursor objects
1482
1482
:type parameters: :class: `dict ` | :term: `sequence `
1483
1483
1484
1484
:raises ProgrammingError:
1485
- If *sql * contains more than one SQL statement.
1485
+ When *sql * contains more than one SQL statement.
1486
+ When :ref: `named placeholders <sqlite3-placeholders >` are used
1487
+ and *parameters * is a sequence instead of a :class: `dict `.
1486
1488
1487
1489
If :attr: `~Connection.autocommit ` is
1488
1490
:data: `LEGACY_TRANSACTION_CONTROL `,
@@ -1491,13 +1493,11 @@ Cursor objects
1491
1493
and there is no open transaction,
1492
1494
a transaction is implicitly opened before executing *sql *.
1493
1495
1494
- .. deprecated-removed :: 3.12 3.14
1496
+ .. versionchanged :: 3.14
1495
1497
1496
- :exc: `DeprecationWarning ` is emitted if
1498
+ :exc: `ProgrammingError ` is emitted if
1497
1499
:ref: `named placeholders <sqlite3-placeholders >` are used
1498
1500
and *parameters * is a sequence instead of a :class: `dict `.
1499
- Starting with Python 3.14, :exc: `ProgrammingError ` will
1500
- be raised instead.
1501
1501
1502
1502
Use :meth: `executescript ` to execute multiple SQL statements.
1503
1503
@@ -1519,8 +1519,10 @@ Cursor objects
1519
1519
:type parameters: :term: `iterable `
1520
1520
1521
1521
:raises ProgrammingError:
1522
- If *sql * contains more than one SQL statement,
1523
- or is not a DML statement.
1522
+ When *sql * contains more than one SQL statement
1523
+ or is not a DML statement,
1524
+ When :ref: `named placeholders <sqlite3-placeholders >` are used
1525
+ and the items in *parameters * are sequences instead of :class: `dict `\s .
1524
1526
1525
1527
Example:
1526
1528
@@ -1544,14 +1546,12 @@ Cursor objects
1544
1546
1545
1547
.. _RETURNING clauses : https://www.sqlite.org/lang_returning.html
1546
1548
1547
- .. deprecated-removed :: 3.12 3.14
1549
+ .. versionchanged :: 3.14
1548
1550
1549
- :exc: `DeprecationWarning ` is emitted if
1551
+ :exc: `ProgrammingError ` is emitted if
1550
1552
:ref: `named placeholders <sqlite3-placeholders >` are used
1551
1553
and the items in *parameters * are sequences
1552
1554
instead of :class: `dict `\s .
1553
- Starting with Python 3.14, :exc: `ProgrammingError ` will
1554
- be raised instead.
1555
1555
1556
1556
.. method :: executescript(sql_script, /)
1557
1557
0 commit comments