[MDEV-3930] Spatial functions: Return error instead of NULL for non supported geometry types Created: 2012-12-11 Updated: 2014-06-06 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.28a |
| Fix Version/s: | 5.5 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Georg Richter | Assignee: | Alexey Botchkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
This issue might be related to Geometry functions should be more restrictive and produce an error in case parameter is a valid geometry but has the wrong type. According to the OGC standard definition the return value for a The standard also defines the valid geometry types for functions:
Example:PostGIS
MariaDB
Affected functions (might be incomplete)Geometry type POINT
Geometry type CURVE (includes LINESTRING, LINE, LINEARRING)
Geometry type LINESTRING
Geometry type SURFACE (includes POLYGON, POLYHEDRALSURFACE)
Geometry type POLYGON
|