3310
MariaDBERRORNotableSpatial / GISHIGH confidence

Mandatory attribute missing from Spatial Reference System definition

Production Risk

Low — DDL rejected immediately.

How to reproduce
trigger — this will error
trigger — this will error
CREATE SPATIAL REFERENCE SYSTEM 12345 DEFINITION '...'; -- NAME omitted

expected output

ERROR 3310 (HY000): Mandatory attribute missing from spatial reference system definition.

Fix

Add the missing attribute

Add the missing attribute
CREATE SPATIAL REFERENCE SYSTEM 12345 NAME 'My SRS' DEFINITION '...';

Why this works

All mandatory clauses must be present for the SRS to be stored.

What not to do

Sources
Official documentation ↗

MySQL 8.0 — 3310 ER_SRS_MISSING_MANDATORY_ATTRIBUTE

Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev

← All MariaDB errors