1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Refs #35803 -- Added support for __covers GIS lookup on MySQL.

This commit is contained in:
Mariusz Felisiak
2024-09-29 19:46:26 +02:00
committed by Sarah Boyce
parent c77573716a
commit 5cf88dcc57
4 changed files with 10 additions and 3 deletions

View File

@@ -60,6 +60,8 @@ class MySQLOperations(BaseSpatialOperations, DatabaseOperations):
operators["relate"] = SpatialOperator(func="ST_Relate")
if self.connection.mysql_version < (11, 7):
del operators["coveredby"]
else:
operators["covers"] = SpatialOperator(func="MBRCovers")
return operators
@cached_property