#26785: Oracle backend returns empty string instead of None for empty geometries
----------------------------+--------------------
Reporter: sir-sigurd | Owner: nobody
Type: Bug | Status: new
Component: GIS | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------
{{{#!python
from django.contrib.gis.geos.geometry import GEOSGeometry
from django.contrib.gis.db.models.functions import Intersection
from test_app.models import City
City.objects.annotate(inter=Intersection('point', GEOSGeometry('POINT (0
0)', srid=4326))).values('inter')
}}}
{{{#!python
<QuerySet [{'inter': u''}]>
}}}
{{{#!python
from django.db import connection
c = connection.cursor()
c.execute('SELECT "TEST_APP_CITY"."ID",
SDO_UTIL.TO_WKTGEOMETRY(SDO_GEOM.SDO_INTERSECTION("TEST_APP_CITY"."POINT",
SDO_GEOMETRY(\'POINT(0 0)\', 4326), 0.05)) AS "INTER" FROM
"TEST_APP_CITY"')
.fetchall()
}}}
{{{#!python
[('1', None)]
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26785>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/053.28bc80db3c201a1fda040100602893d9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.