django/tests/backends/postgresql
Simon Charette 4608d34b34 Fixed #36088 -- Avoided unnecessary DEFAULT usage on bulk_create().
When all values of a field with a db_default are DatabaseDefault, which
is the case most of the time, there is no point in specifying explicit
DEFAULT for all INSERT VALUES as that's what the database will do anyway
if not specified.

In the case of PostgreSQL doing so can even be harmful as it prevents
the usage of the UNNEST strategy and in the case of Oracle, which
doesn't support the usage of the DEFAULT keyword, it unnecessarily
requires providing literal db defaults.

Thanks Lily Foote for the review.
2025-02-01 18:43:10 +01:00
..
__init__.py Reorganized backends tests. 2017-06-21 12:00:47 -04:00
test_compilation.py Fixed #36088 -- Avoided unnecessary DEFAULT usage on bulk_create(). 2025-02-01 18:43:10 +01:00
test_creation.py Refs #33308 -- Moved psycopg2 imports to the psycopg_any module. 2022-12-12 08:36:17 +01:00
test_introspection.py Fixed #30511 -- Used identity columns instead of serials on PostgreSQL. 2022-04-13 21:51:51 +02:00
test_operations.py Fixed #16055 -- Fixed crash when filtering against char/text GenericRelation relation on PostgreSQL. 2023-04-18 12:41:14 +02:00
test_server_side_cursors.py Fixed #35028 -- Disabled server-side bindings for named cursors on psycopg >= 3. 2024-01-12 21:40:18 +01:00
tests.py Fixed #35688 -- Restored timezone and role setters to be PostgreSQL DatabaseWrapper methods. 2024-08-28 19:25:07 -03:00