@@ -1492,7 +1492,9 @@ Cursor objects
1492
1492
:type parameters: :class: `dict ` | :term: `sequence `
1493
1493
1494
1494
:raises ProgrammingError:
1495
- If *sql * contains more than one SQL statement.
1495
+ When *sql * contains more than one SQL statement.
1496
+ When :ref: `named placeholders <sqlite3-placeholders >` are used
1497
+ and *parameters * is a sequence instead of a :class: `dict `.
1496
1498
1497
1499
If :attr: `~Connection.autocommit ` is
1498
1500
:data: `LEGACY_TRANSACTION_CONTROL `,
@@ -1501,13 +1503,11 @@ Cursor objects
1501
1503
and there is no open transaction,
1502
1504
a transaction is implicitly opened before executing *sql *.
1503
1505
1504
- .. deprecated-removed :: 3.12 3.14
1506
+ .. versionchanged :: 3.14
1505
1507
1506
- :exc: `DeprecationWarning ` is emitted if
1508
+ :exc: `ProgrammingError ` is emitted if
1507
1509
:ref: `named placeholders <sqlite3-placeholders >` are used
1508
1510
and *parameters * is a sequence instead of a :class: `dict `.
1509
- Starting with Python 3.14, :exc: `ProgrammingError ` will
1510
- be raised instead.
1511
1511
1512
1512
Use :meth: `executescript ` to execute multiple SQL statements.
1513
1513
@@ -1529,8 +1529,10 @@ Cursor objects
1529
1529
:type parameters: :term: `iterable `
1530
1530
1531
1531
:raises ProgrammingError:
1532
- If *sql * contains more than one SQL statement,
1533
- or is not a DML statement.
1532
+ When *sql * contains more than one SQL statement
1533
+ or is not a DML statement,
1534
+ When :ref: `named placeholders <sqlite3-placeholders >` are used
1535
+ and the items in *parameters * are sequences instead of :class: `dict `\s .
1534
1536
1535
1537
Example:
1536
1538
@@ -1554,14 +1556,12 @@ Cursor objects
1554
1556
1555
1557
.. _RETURNING clauses : https://www.sqlite.org/lang_returning.html
1556
1558
1557
- .. deprecated-removed :: 3.12 3.14
1559
+ .. versionchanged :: 3.14
1558
1560
1559
- :exc: `DeprecationWarning ` is emitted if
1561
+ :exc: `ProgrammingError ` is emitted if
1560
1562
:ref: `named placeholders <sqlite3-placeholders >` are used
1561
1563
and the items in *parameters * are sequences
1562
1564
instead of :class: `dict `\s .
1563
- Starting with Python 3.14, :exc: `ProgrammingError ` will
1564
- be raised instead.
1565
1565
1566
1566
.. method :: executescript(sql_script, /)
1567
1567
0 commit comments