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:
committed by
Sarah Boyce
parent
c77573716a
commit
5cf88dcc57
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user