diff --git a/django/contrib/gis/db/backends/mysql/introspection.py b/django/contrib/gis/db/backends/mysql/introspection.py index 7c1fb1ed840..ad78595e249 100644 --- a/django/contrib/gis/db/backends/mysql/introspection.py +++ b/django/contrib/gis/db/backends/mysql/introspection.py @@ -33,6 +33,6 @@ class MySQLIntrospection(DatabaseIntrospection): storage_engine = self.get_storage_engine(cursor, table_name) if storage_engine == 'InnoDB': if self.connection.mysql_is_mariadb: - True + return True return self.connection.mysql_version >= (5, 7, 5) return storage_engine in ('MyISAM', 'Aria')