@@ -1442,6 +1442,14 @@ Cursor objects
1442
1442
and there is no open transaction,
1443
1443
a transaction is implicitly opened before executing *sql *.
1444
1444
1445
+ .. deprecated-removed :: 3.12 3.14
1446
+
1447
+ :exc: `DeprecationWarning ` is emitted if
1448
+ :ref: `named placeholders <sqlite3-placeholders >` are used
1449
+ and *parameters * is a sequence instead of a :class: `dict `.
1450
+ Starting with Python 3.14, :exc: `ProgrammingError ` will
1451
+ be raised instead.
1452
+
1445
1453
Use :meth: `executescript ` to execute multiple SQL statements.
1446
1454
1447
1455
.. method :: executemany(sql, parameters, /)
@@ -1476,6 +1484,15 @@ Cursor objects
1476
1484
# cur is an sqlite3.Cursor object
1477
1485
cur.executemany("INSERT INTO data VALUES(?)", rows)
1478
1486
1487
+ .. deprecated-removed :: 3.12 3.14
1488
+
1489
+ :exc: `DeprecationWarning ` is emitted if
1490
+ :ref: `named placeholders <sqlite3-placeholders >` are used
1491
+ and the items in *parameters * are sequences
1492
+ instead of :class: `dict `\s .
1493
+ Starting with Python 3.14, :exc: `ProgrammingError ` will
1494
+ be raised instead.
1495
+
1479
1496
.. method :: executescript(sql_script, /)
1480
1497
1481
1498
Execute the SQL statements in *sql_script *.
@@ -1971,7 +1988,7 @@ question marks (qmark style) or named placeholders (named style).
1971
1988
For the qmark style, *parameters * must be a
1972
1989
:term: `sequence ` whose length must match the number of placeholders,
1973
1990
or a :exc: `ProgrammingError ` is raised.
1974
- For the named style, *parameters * should be
1991
+ For the named style, *parameters * must be
1975
1992
an instance of a :class: `dict ` (or a subclass),
1976
1993
which must contain keys for all named parameters;
1977
1994
any extra items are ignored.
0 commit comments