#32527: needs_rollback flag issue with implementation of backend that does not
support savepoint
-------------------------------------+-------------------------------------
Reporter: Hemant Bhanawat | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution: needsinfo
Keywords: savepoint | Triage Stage:
needs_rollback database backend | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Hemant Bhanawat):
On master branch of django, apply this commit:
{{{
diff --git a/django/db/backends/postgresql/features.py
b/django/db/backends/postgresql/features.py
index 722bfe0475..7365b57b54 100644
--- a/django/db/backends/postgresql/features.py
+++ b/django/db/backends/postgresql/features.py
@@ -6,6 +6,8 @@ from django.utils.functional import cached_property
class DatabaseFeatures(BaseDatabaseFeatures):
+ uses_savepoints= False
+ can_release_savepoints = False
allows_group_by_selected_pks = True
can_return_columns_from_insert = True
can_return_rows_from_bulk_insert = True
}}}
The run the following command to run the tests:
{{{
./runtests.py --settings=postgres_settings -v 3 admin_changelist
--failfast
}}}
The second test will fail because needs_rollback is set as true.
--
Ticket URL: <https://code.djangoproject.com/ticket/32527#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.c0b5d8c7989fe6e052c78bb64116f6de%40djangoproject.com.