3608
MySQLWARNINGCriticalSpatialHIGH confidence
Cartesian SRS not supported for this operation
Production Risk
Medium — Distance calculations may return incorrect results.
How to reproduce
trigger — this will error
trigger — this will error
SELECT ST_Distance_Sphere(ST_GeomFromText('POINT(0 0)', 0), ST_GeomFromText('POINT(1 1)', 0));expected output
Warning 3608: Cartesian SRS is not supported for this operation.
Fix
Use geographic SRS
Use geographic SRS
SELECT ST_Distance_Sphere(ST_GeomFromText('POINT(0 0)', 4326), ST_GeomFromText('POINT(1 1)', 4326));Why this works
Provides geographic coordinates in SRID 4326 for sphere distance calculation.
What not to do
✕
Version notes
Sources
Official documentation ↗
MySQL 8.0 — 3608 ER_WARN_SRS_CARTESIAN_UNSUPPORTED
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev