diff options
author | Alokik Vijay <43698507+Alokik-Roe@users.noreply.github.com> | 2022-02-26 20:55:21 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-26 16:25:21 +0100 |
commit | c1d168be0fe7d848297253bdf2c5963dffda5af7 (patch) | |
tree | d016a66d0c9e640d21b214bcb68df0b364286883 /django/db/backends/mysql/features.py | |
parent | 26c166c3b000ad829127046b1b107d9733a6a2ef (diff) | |
download | django-c1d168be0fe7d848297253bdf2c5963dffda5af7.tar.gz |
Fixed #33508 -- Fixed DatabaseFeatures.supports_index_column_ordering on MariaDB 10.8+.
Diffstat (limited to 'django/db/backends/mysql/features.py')
-rw-r--r-- | django/db/backends/mysql/features.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/django/db/backends/mysql/features.py b/django/db/backends/mysql/features.py index f5b9ef9b55..1996208b46 100644 --- a/django/db/backends/mysql/features.py +++ b/django/db/backends/mysql/features.py @@ -316,10 +316,9 @@ class DatabaseFeatures(BaseDatabaseFeatures): @cached_property def supports_index_column_ordering(self): - return ( - not self.connection.mysql_is_mariadb - and self.connection.mysql_version >= (8, 0, 1) - ) + if self.connection.mysql_is_mariadb: + return self.connection.mysql_version >= (10, 8) + return self.connection.mysql_version >= (8, 0, 1) @cached_property def supports_expression_indexes(self): |