From 2cec020f5bc462954d902bdad1a5955852cecff6 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 17 May 2022 13:16:23 +0200 Subject: [PATCH] Refs #33379 -- Fixed minimum supported version of MariaDB. --- django/db/backends/mysql/features.py | 2 +- tests/backends/mysql/tests.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/django/db/backends/mysql/features.py b/django/db/backends/mysql/features.py index 1261d9e9a6c..53c0652fce6 100644 --- a/django/db/backends/mysql/features.py +++ b/django/db/backends/mysql/features.py @@ -52,7 +52,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): @cached_property def minimum_database_version(self): if self.connection.mysql_is_mariadb: - return (10, 2) + return (10, 3) else: return (5, 7) diff --git a/tests/backends/mysql/tests.py b/tests/backends/mysql/tests.py index e84762584a7..234b4df4419 100644 --- a/tests/backends/mysql/tests.py +++ b/tests/backends/mysql/tests.py @@ -107,8 +107,8 @@ class Tests(TestCase): @mock.patch.object(connection, "get_database_version") def test_check_database_version_supported(self, mocked_get_database_version): if connection.mysql_is_mariadb: - mocked_get_database_version.return_value = (10, 1) - msg = "MariaDB 10.2 or later is required (found 10.1)." + mocked_get_database_version.return_value = (10, 2) + msg = "MariaDB 10.3 or later is required (found 10.2)." else: mocked_get_database_version.return_value = (5, 6) msg = "MySQL 5.7 or later is required (found 5.6)."