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

Fixed #36471 -- Added support for __coveredby GIS lookup and Collect, GeoHash, IsValid on MariaDB 12.0.1+.

This commit is contained in:
Mariusz Felisiak
2025-06-18 17:51:08 +02:00
committed by Sarah Boyce
parent b2407e4d7d
commit 7091801e04
6 changed files with 101 additions and 66 deletions

View File

@@ -589,7 +589,7 @@ Example:
.. class:: GeoHash(expression, precision=None, **extra)
*Availability*: `MySQL
*Availability*: MariaDB, `MySQL
<https://dev.mysql.com/doc/refman/en/spatial-geohash-functions.html#function_st-geohash>`__,
`PostGIS <https://postgis.net/docs/ST_GeoHash.html>`__, SpatiaLite
(LWGEOM/RTTOPO)
@@ -602,6 +602,10 @@ result.
__ https://en.wikipedia.org/wiki/Geohash
.. versionchanged:: 6.0
MariaDB 12.0.1+ support was added.
Miscellaneous
=============
@@ -620,13 +624,17 @@ geometry. Returns ``True`` if its value is empty and ``False`` otherwise.
.. class:: IsValid(expr)
*Availability*: `MySQL
*Availability*: MariaDB, `MySQL
<https://dev.mysql.com/doc/refman/en/spatial-convenience-functions.html#function_st-isvalid>`__,
`PostGIS <https://postgis.net/docs/ST_IsValid.html>`__, Oracle, SpatiaLite
Accepts a geographic field or expression and tests if the value is well formed.
Returns ``True`` if its value is a valid geometry and ``False`` otherwise.
.. versionchanged:: 6.0
MariaDB 12.0.1+ support was added.
``MemSize``
-----------