From 1a85b07bddbf43da00311bdbb3ef5519a3165dc6 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Wed, 23 Aug 2017 11:30:24 +0500 Subject: Fixed #28518 -- Improved performance of loading geometries from DB. --- tests/gis_tests/geoapp/test_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/gis_tests/geoapp/test_functions.py b/tests/gis_tests/geoapp/test_functions.py index bbf29b0aff..0e644cefd6 100644 --- a/tests/gis_tests/geoapp/test_functions.py +++ b/tests/gis_tests/geoapp/test_functions.py @@ -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: -- cgit v1.3