diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-09-06 11:53:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-06 11:53:54 +0200 |
| commit | addabc492bdc0191ac95d59ec34b56b34086ebb9 (patch) | |
| tree | e3c4874a6ef5912ae899b2dab9e220f93b62b8c8 /django | |
| parent | 6c379f1a1897a0e0b95531ea7d9806b17b22ff89 (diff) | |
Fixed DatabaseFeatures.can_introspect_check_constraints on MariaDB < 10.2.22, 10.3.0 - 10.3.9.
Regression in e2c6a0858d7d9ad85eda353076a5b46608b704a9.
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/mysql/features.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/db/backends/mysql/features.py b/django/db/backends/mysql/features.py index 5800ad6c95..94b57ae57f 100644 --- a/django/db/backends/mysql/features.py +++ b/django/db/backends/mysql/features.py @@ -99,8 +99,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): def can_introspect_check_constraints(self): if self.connection.mysql_is_mariadb: version = self.connection.mysql_version - if (version >= (10, 2, 22) and version < (10, 3)) or version >= (10, 3, 10): - return True + return (version >= (10, 2, 22) and version < (10, 3)) or version >= (10, 3, 10) return self.connection.mysql_version >= (8, 0, 16) @cached_property |
