Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#15289 closed (fixed)

New transaction behavior only works if DEBUG=False

Reported by: apollo13 Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

CursorDebugWrapper defines it's own __getattr__ and as such eliminates the effect of http://code.djangoproject.com/browser/django/trunk/django/db/backends/util.py?rev=15493#L18 I also never get a dirty transaction if in autocommit mode, is this wanted behavior? Patch for the first one would be just removing __getattr__, not sure about the later one.

Change History (3)

comment:1 Changed 5 years ago by ramiro

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 5 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

In [15516]:

Fixed #15289 -- Removed a redundant getattr implementation from the debug SQL cursor wrapper. Thanks to Apollo13 for the report.

comment:3 Changed 4 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top