﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32705	Database cache.delete uses cursor after it is closed	ecogels	nobody	"The return bool(cursor.rowcount) is outside of the with block, so the cursor will have been closed at that point.

From the DB API 2.0 spec:  ""The cursor will be unusable from this point forward"" https://www.python.org/dev/peps/pep-0249/#Cursor.close


As the main backend drivers don't mind it I suppose that is is open to interpretation.


Here is  a basic PR https://github.com/django/django/compare/main...ecogels:fix-dbcache-delete-1"	Cleanup/optimization	new	Core (Cache system)	3.2	Normal				Unreviewed	1	0	0	0	1	0
