Bug #80627 incorrect function referenced in spatial error message ERROR 3037 (22023)
Submitted: 7 Mar 2016 1:11 Modified: 31 May 2016 15:27
Reporter: Shane Bester (Platinum Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: GIS Severity:S3 (Non-critical)
Version:8.0.0 OS:Any
Assigned to: CPU Architecture:Any

[7 Mar 2016 1:11] Shane Bester
Description:
the function is reported as 'st_geometryfromtext'.

mysql> do st_mlinefromtext(1);
ERROR 3037 (22023): Invalid GIS data provided to function st_geometryfromtext.
mysql> do st_mpointfromtext(1);
ERROR 3037 (22023): Invalid GIS data provided to function st_geometryfromtext.
mysql> do st_mpolyfromtext(1);
ERROR 3037 (22023): Invalid GIS data provided to function st_geometryfromtext.
mysql> do st_pointfromtext(1);
ERROR 3037 (22023): Invalid GIS data provided to function st_geometryfromtext.
mysql> do st_polyfromtext(1);
ERROR 3037 (22023): Invalid GIS data provided to function st_geometryfromtext.

How to repeat:
do st_mlinefromtext(1);
do st_mpointfromtext(1);
do st_mpolyfromtext(1);
do st_pointfromtext(1);
do st_polyfromtext(1);

Suggested fix:
o) report the actual function that was called (or an alias of it).
or
o) do not fix at all,  it's only cosmetic.
[31 May 2016 15:27] Paul DuBois
Posted by developer:
 
Noted in 5.8.0 changelog.

Some spatial functions were reported using a different spatial
function name in error messages.
[18 Jun 2016 21:36] Omer Barnir
Posted by developer:
 
Reported version value updated to reflect release name change from 5.8 to 8.0