diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-04-12 12:26:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 12:26:51 +0200 |
commit | 24f442b91dd1e3e440ec929f4ad9907d53aa69bc (patch) | |
tree | 35339517cd24b47c31b895c208a6991a6dd5330e /django/db/backends/mysql/features.py | |
parent | 0ad5316f22eabe8fa8b22dc92e61170cfacc3c78 (diff) | |
download | django-24f442b91dd1e3e440ec929f4ad9907d53aa69bc.tar.gz |
Fixed DatabaseFeatures.supports_expression_indexes on MySQL with MyISAM.
Diffstat (limited to 'django/db/backends/mysql/features.py')
-rw-r--r-- | django/db/backends/mysql/features.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/backends/mysql/features.py b/django/db/backends/mysql/features.py index 834ea4f88f..c4706fc1b0 100644 --- a/django/db/backends/mysql/features.py +++ b/django/db/backends/mysql/features.py @@ -336,5 +336,6 @@ class DatabaseFeatures(BaseDatabaseFeatures): def supports_expression_indexes(self): return ( not self.connection.mysql_is_mariadb + and self._mysql_storage_engine != "MyISAM" and self.connection.mysql_version >= (8, 0, 13) ) |