[MDEV-7512] GIS: ST_ synonyms for functions are not consistent Created: 2015-01-27  Updated: 2015-03-15  Resolved: 2015-03-15

Status: Closed
Project: MariaDB Server
Component/s: GIS
Affects Version/s: 10.0, 10.1
Fix Version/s: 10.1.4

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Alexey Botchkov
Resolution: Fixed Votes: 0
Labels: gis

Issue Links:
Relates
relates to MDEV-7779 View definition changes upon creation Closed

 Description   

For some functions there are ST_ synonyms, while for others (of the same kind) there are none. It makes SQL incompatible with e.g. PostGIS.

Example:

MariaDB [test]> select PolygonFromText();
ERROR 1582 (42000): Incorrect parameter count in the call to native function 'PolygonFromText'
MariaDB [test]> select MultiPolygonFromText();
ERROR 1582 (42000): Incorrect parameter count in the call to native function 'MultiPolygonFromText'
MariaDB [test]> select ST_PolygonFromText();
ERROR 1582 (42000): Incorrect parameter count in the call to native function 'ST_PolygonFromText'
MariaDB [test]> select ST_MultiPolygonFromText();
ERROR 1305 (42000): FUNCTION test.ST_MultiPolygonFromText does not exist

So, there are both PolygonFromText and ST_PolygonFromText, but only MultiPolygonFromText, no ST_MultiPolygonFromText.

There might be other ones missing as well.



 Comments   
Comment by Ian Gilfillan [ 2015-02-04 ]

There is also ST_Relate() only, not Relate(). Some of these functions are documented as behaving differently in the KB. For example, Within() is documented differently to ST_Within(). If this is correct, it's going to be very confusing to have some functions as synonyms, and others implemented differently.

Comment by Alexey Botchkov [ 2015-03-15 ]

Fixing patch: http://lists.askmonty.org/pipermail/commits/2015-March/007597.html.

Generated at Thu Feb 08 07:20:09 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.