From 221b2f85febcf68629fc3a4007dc7edb5a305b91 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Wed, 22 Sep 2021 11:57:54 +0200 Subject: Fixed #33129 -- Dropped support for MariaDB 10.2. --- django/db/backends/mysql/features.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'django/db/backends/mysql/features.py') diff --git a/django/db/backends/mysql/features.py b/django/db/backends/mysql/features.py index b51025e358..3b1b23a585 100644 --- a/django/db/backends/mysql/features.py +++ b/django/db/backends/mysql/features.py @@ -184,7 +184,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): @cached_property def supports_column_check_constraints(self): if self.connection.mysql_is_mariadb: - return self.connection.mysql_version >= (10, 2, 1) + return True return self.connection.mysql_version >= (8, 0, 16) supports_table_check_constraints = property(operator.attrgetter('supports_column_check_constraints')) @@ -193,7 +193,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): def can_introspect_check_constraints(self): if self.connection.mysql_is_mariadb: version = self.connection.mysql_version - return (version >= (10, 2, 22) and version < (10, 3)) or version >= (10, 3, 10) + return version >= (10, 3, 10) return self.connection.mysql_version >= (8, 0, 16) @cached_property @@ -205,7 +205,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): @cached_property def has_select_for_update_nowait(self): if self.connection.mysql_is_mariadb: - return self.connection.mysql_version >= (10, 3, 0) + return True return self.connection.mysql_version >= (8, 0, 1) @cached_property @@ -244,7 +244,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): @cached_property def supports_json_field(self): if self.connection.mysql_is_mariadb: - return self.connection.mysql_version >= (10, 2, 7) + return True return self.connection.mysql_version >= (5, 7, 8) @cached_property -- cgit v1.2.1