Fixed #10070 -- Added support for pyformat style parameters on SQLite.

Co-authored-by: Nick Pope <nick@nickpope.me.uk>
This commit is contained in:
Ryan Cheley 2022-10-30 10:44:33 -07:00 committed by Mariusz Felisiak
parent 7b94847e38
commit 8e6ea1d153
3 changed files with 29 additions and 17 deletions

View file

@ -819,14 +819,6 @@ If you're getting this error, you can solve it by:
SQLite does not support the ``SELECT ... FOR UPDATE`` syntax. Calling it will
have no effect.
"pyformat" parameter style in raw queries not supported
-------------------------------------------------------
For most backends, raw queries (``Manager.raw()`` or ``cursor.execute()``)
can use the "pyformat" parameter style, where placeholders in the query
are given as ``'%(name)s'`` and the parameters are passed as a dictionary
rather than a list. SQLite does not support this.
.. _sqlite-isolation:
Isolation when using ``QuerySet.iterator()``