mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
92d6cff6a2
While we provide a `cursor_factory` based on the value of the `server_side_bindings` option to `psycopg.Connection` it is ignored by the `cursor` method when `name` is specified for `QuerySet.iterator()` usage and it causes the usage of `psycopg.ServerCursor` which performs server-side bindings. Since the ORM doesn't generates SQL that is suitable for server-side bindings when dealing with parametrized expressions a specialized cursor must be used to allow server-side cursors to be used with client-side bindings. Thanks Richard Ebeling for the report. Thanks Florian Apolloner and Daniele Varrazzo for reviews. |
||
---|---|---|
.. | ||
__init__.py | ||
test_creation.py | ||
test_introspection.py | ||
test_operations.py | ||
test_server_side_cursors.py | ||
tests.py |