Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#677 closed defect (fixed)

[patch] sql_queries list not getting reset between requests

Reported by: seancazzell@… Owned by: Adrian Holovaty
Component: Database layer (models, ORM) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In debug mode, a log of sql queries are stored as a list in django.db.db.queries - this list isn't getting cleared between requests. The enclosed patch adds the necessary line of code to handlers/base.py in the get_response method (seemed the most logical place for it).

Attachments (1)

sql_queries_reset_fix.diff (562 bytes ) - added by seancazzell@… 19 years ago.

Download all attachments as: .zip

Change History (2)

by seancazzell@…, 19 years ago

Attachment: sql_queries_reset_fix.diff added

comment:1 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

(In [1009]) Fixed #677 -- db.queries is now reset per request. Thanks, seancazzell

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