3304
MariaDBERRORNotableSpatial / GISHIGH confidence
Failed to parse the Spatial Reference System WKT definition
Production Risk
Low — DDL fails; no existing SRS data is affected.
How to reproduce
trigger — this will error
trigger — this will error
CREATE SPATIAL REFERENCE SYSTEM 12345 NAME 'bad' DEFINITION 'NOTVALID[]';
expected output
ERROR 3304 (SR001): Failed to parse the WKT for spatial reference system definition.
Fix
Use a valid WKT definition
Use a valid WKT definition
CREATE SPATIAL REFERENCE SYSTEM 12345 NAME 'custom' DEFINITION 'GEOGCS[...]';
Why this works
A syntactically correct WKT string allows the SRS to be stored.
What not to do
✕
Sources
Official documentation ↗
MySQL 8.0 — 3304 ER_SRS_PARSE_ERROR
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev