1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
django/tests/backends
Simon Charette 92d6cff6a2 Fixed #35028 -- Disabled server-side bindings for named cursors on psycopg >= 3.
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.
2024-01-12 21:40:18 +01:00
..
base Fixed isolation of DatabaseWrapperLoggingTests.test_commit_debug_log(). 2023-10-27 09:05:09 +02:00
mysql Fixed #34992 -- Fixed DatabaseFeatures.allows_group_by_selected_pks on MariaDB with ONLY_FULL_GROUP_BY sql mode. 2023-11-27 09:20:10 +01:00
oracle Updated DatabaseFeatures.bare_select_suffix on Oracle 23c. 2024-01-01 10:59:16 +01:00
postgresql Fixed #35028 -- Disabled server-side bindings for named cursors on psycopg >= 3. 2024-01-12 21:40:18 +01:00
sqlite Fixed ResourceWarning from unclosed SQLite connection on Python 3.13+. 2023-08-23 09:09:23 +02:00
__init__.py
models.py
test_ddl_references.py
test_utils.py Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
tests.py Fixed ResourceWarning from unclosed SQLite connection on Python 3.13+. 2023-08-23 09:09:23 +02:00