Opened 17 years ago
Closed 17 years ago
#4422 closed (fixed)
django tries to rollback transactions on exceptions when using the dummy engine
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I'm using django, but don't want to use the database part of it. However, this causes a problem whenever I have an unhandled exception. At the bottom of django/db/init.py, django connects _rollback_on_exception() to the got_request_exception signal. This means that on every request exception, transaction.rollback_unless_managed() is called which fails. Note: I'm not importing the db module, but other django modules seem to do it.
I think the solution is to not hook up the callback if the dummy engine is in use.
Change History (2)
comment:1 by , 17 years ago
Component: | Uncategorized → Database wrapper |
---|---|
Owner: | changed from | to
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This will have been fixed by [5410].