summaryrefslogtreecommitdiff
path: root/django/db/backends/sqlite3/features.py
diff options
context:
space:
mode:
authorguro-Ishiguro <guro120411@gmail.com>2025-12-23 00:30:05 +0900
committerJacob Walls <jacobtylerwalls@gmail.com>2025-12-22 20:33:39 -0500
commit847b2badccbd87fc3e657725eb316b092265912d (patch)
tree3579dc4cfe99b60f06d9a47f36c0826dd13087a6 /django/db/backends/sqlite3/features.py
parentf31445f2e7e1091ab4de81b9c994052fc6842e22 (diff)
[6.0.x] Fixed #36818 -- Ensured SQLite connection before accessing max_query_params.
Regression in 358fd21c47cdf7bda520ce73c5cfd82bba57827b. Backport of 84bae9c22a8ae7663c56cce5e0c611ea7c17fce1 from main.
Diffstat (limited to 'django/db/backends/sqlite3/features.py')
-rw-r--r--django/db/backends/sqlite3/features.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/backends/sqlite3/features.py b/django/db/backends/sqlite3/features.py
index 143ee1e98b..a6c8ff643d 100644
--- a/django/db/backends/sqlite3/features.py
+++ b/django/db/backends/sqlite3/features.py
@@ -149,6 +149,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
999 in versions < 3.32.0 or 32766 in newer versions) or lowered per
connection at run-time with setlimit(SQLITE_LIMIT_VARIABLE_NUMBER, N).
"""
+ self.connection.ensure_connection()
return self.connection.connection.getlimit(sqlite3.SQLITE_LIMIT_VARIABLE_NUMBER)
@cached_property