From c1d168be0fe7d848297253bdf2c5963dffda5af7 Mon Sep 17 00:00:00 2001 From: Alokik Vijay <43698507+Alokik-Roe@users.noreply.github.com> Date: Sat, 26 Feb 2022 20:55:21 +0530 Subject: [PATCH] Fixed #33508 -- Fixed DatabaseFeatures.supports_index_column_ordering on MariaDB 10.8+. --- django/db/backends/mysql/features.py | 7 +++---- 1 file 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):