﻿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
36420	Use actual SQLite limits in last_executed_query()	Adam Johnson	myoungjinGo	"The SQLite backend’s `last_executed_query()` method does its own parameter batching: https://github.com/django/django/blob/b373721af0e5c3de0986977ac07e3ad55061ecbe/django/db/backends/sqlite3/operations.py#L154-L179

The comment there from Aymeric notes that “Since Python's sqlite3 module doesn't expose the get_limit() C API, assume the default limits are in effect...”.

Python 3.11 added the `getlimit()` function, which exposes that API: https://docs.python.org/3.13/library/sqlite3.html#sqlite3.Connection.getlimit  . We already have use for it in #36143.

That method could be updated to use the actual limits and accurately reflect the queries that were executed."	Cleanup/optimization	closed	Database layer (models, ORM)	dev	Normal	fixed		Sage Abdullah	Ready for checkin	1	0	0	0	0	0
