mirror of
https://github.com/django/django.git
synced 2025-10-30 17:16:10 +00:00
Fixed #28518 -- Improved performance of loading geometries from DB.
This commit is contained in:
committed by
Tim Graham
parent
481ba33cd2
commit
1a85b07bdd
@@ -248,7 +248,7 @@ class GISFunctionsTests(TestCase):
|
||||
geom = Point(5, 23, srid=4326)
|
||||
qs = Country.objects.annotate(inter=functions.Intersection('mpoly', geom))
|
||||
for c in qs:
|
||||
if spatialite or (mysql and not connection.ops.uses_invalid_empty_geometry_collection) or oracle:
|
||||
if spatialite or (mysql and not connection.features.supports_empty_geometry_collection) or oracle:
|
||||
# When the intersection is empty, some databases return None.
|
||||
expected = None
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user