Details
Description
This is a literal quote from gis-json.result:
10.2 da26e2e673 |
SELECT ST_AsText(SELECT ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',5)); |
ERROR HY000: Incorrect option value: '5' for function ST_GeometryFromJSON |
SELECT ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',1)); |
ERROR 22023: Invalid GIS data provided to function ST_GeometryFromJSON. |
('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',5)); |
ERROR HY000: Incorrect option value: '5' for function ST_GeometryFromJSON |
SELECT ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',1)); |
ERROR 22023: Invalid GIS data provided to function ST_GeometryFromJSON. |
So, the function name is ST_GeomFromGeoJSON, but the error messages say ST_GeometryFromJSON instead. And it is not even a synonym:
MariaDB [test]> SELECT ST_GeometryFromJSON('{}',1); |
ERROR 1305 (42000): FUNCTION test.ST_GeometryFromJSON does not exist |