3307
MySQLERRORNotableSpatial / GISHIGH confidence
Spatial Reference System name cannot be NULL
Production Risk
Low — DDL rejected immediately.
How to reproduce
trigger — this will error
trigger — this will error
CREATE SPATIAL REFERENCE SYSTEM 12345 NAME NULL DEFINITION '...';
expected output
ERROR 3307 (HY000): The spatial reference system name can't be NULL.
Fix
Provide a valid name
Provide a valid name
CREATE SPATIAL REFERENCE SYSTEM 12345 NAME 'My CRS' DEFINITION '...';
Why this works
Every SRS must have a descriptive non-null name.
What not to do
✕
Sources
Official documentation ↗
MySQL 8.0 — 3307 ER_SRS_NAME_CANT_BE_NULL
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev