diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2016-06-21 14:08:29 +0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-06-21 14:06:29 -0400 |
| commit | ea4665066b651e0e2730f2e2d85fcef9d7ac7966 (patch) | |
| tree | 99ea3e87ebf49b9d97d411a0c5296a72a0e2c1e9 /tests | |
| parent | d13881bd34ff8f76b902ef5256001341d60b3161 (diff) | |
Fixed #26785 -- Made Oracle return None rather than empty string for empty geometries.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/gis_tests/geoapp/test_functions.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/gis_tests/geoapp/test_functions.py b/tests/gis_tests/geoapp/test_functions.py index a9bf319a05..3d42a4e407 100644 --- a/tests/gis_tests/geoapp/test_functions.py +++ b/tests/gis_tests/geoapp/test_functions.py @@ -223,12 +223,9 @@ 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: - # When the intersection is empty, Spatialite and MySQL return None + if spatialite or mysql or oracle: + # When the intersection is empty, some databases return None. expected = None - elif oracle: - # When the intersection is empty, Oracle returns an empty string - expected = '' else: expected = c.mpoly.intersection(geom) self.assertEqual(c.inter, expected) |
