ST_AREA does not work on GEOMETRYCOLLECTIONs in maria-5.3-gis

Bug #850775 reported by Philip Stoev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MariaDB
Fix Released
Undecided
Alexey Botchkov

Bug Description

ST_AREA returns NULL when passed a GEOMETRYCOLLECTION .

select ST_AREA(ST_GEOMCOLLFROMTEXT(' POLYGON((0 0,4 7,1 1,0 0))'));
returns 1.5

select ST_AREA(ST_GEOMCOLLFROMTEXT(' GEOMETRYCOLLECTION(POLYGON((0 0,4 7,1 1,0 0)))'));
returns NULL

postgis returns 1.5 in both cases.

Changed in maria:
assignee: nobody → Alexey Botchkov (holyfoot)
Changed in maria:
status: New → Fix Committed
Changed in maria:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.