1
0
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:
Sergey Fedoseev
2017-08-23 11:30:24 +05:00
committed by Tim Graham
parent 481ba33cd2
commit 1a85b07bdd
8 changed files with 94 additions and 60 deletions

View File

@@ -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: