mirror of
https://github.com/django/django.git
synced 2025-11-20 03:30:00 +00:00
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 | ||