diff options
Diffstat (limited to 'django/db/backends/sqlite3/features.py')
| -rw-r--r-- | django/db/backends/sqlite3/features.py | 1 |
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 |
