diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-10-09 13:07:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-09 13:07:50 +0200 |
| commit | 02c63b8f2ff48935c0fa2df5e0c8c1699d32b362 (patch) | |
| tree | 003c70e011d995577b0d4dcf8a21ac7d26fbf03b | |
| parent | 0b7378db1fdd7bfc7b78089811b3abb722c4ba95 (diff) | |
Refs #26608 -- Fixed DatabaseFeatures.supports_frame_range_fixed_distance on SQLite 3.28+, MariaDB 10.2+, and MySQL 8.0.2+.
| -rw-r--r-- | django/db/backends/mysql/features.py | 2 | ||||
| -rw-r--r-- | django/db/backends/sqlite3/features.py | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/django/db/backends/mysql/features.py b/django/db/backends/mysql/features.py index 82d3eef867..505ac0d12f 100644 --- a/django/db/backends/mysql/features.py +++ b/django/db/backends/mysql/features.py @@ -88,6 +88,8 @@ class DatabaseFeatures(BaseDatabaseFeatures): return self.connection.mysql_version >= (10, 2) return self.connection.mysql_version >= (8, 0, 2) + supports_frame_range_fixed_distance = property(operator.attrgetter('supports_over_clause')) + @cached_property def supports_column_check_constraints(self): if self.connection.mysql_is_mariadb: diff --git a/django/db/backends/sqlite3/features.py b/django/db/backends/sqlite3/features.py index 18b76f8c86..238358bd47 100644 --- a/django/db/backends/sqlite3/features.py +++ b/django/db/backends/sqlite3/features.py @@ -42,3 +42,4 @@ class DatabaseFeatures(BaseDatabaseFeatures): can_defer_constraint_checks = supports_pragma_foreign_key_check supports_functions_in_partial_indexes = Database.sqlite_version_info >= (3, 15, 0) supports_over_clause = Database.sqlite_version_info >= (3, 25, 0) + supports_frame_range_fixed_distance = Database.sqlite_version_info >= (3, 28, 0) |
