3418
MariaDBERRORNotablePartitioningHIGH confidence
Wrong number of partition data values
Production Risk
Low — DDL fails; no table is created.
How to reproduce
trigger — this will error
trigger — this will error
CREATE TABLE t (a INT, b INT) PARTITION BY RANGE COLUMNS(a, b) (PARTITION p0 VALUES LESS THAN (10));
expected output
ERROR 3418 (HY000): Wrong number of values for partition data.
Fix
Provide values for all COLUMNS
Provide values for all COLUMNS
CREATE TABLE t (a INT, b INT) PARTITION BY RANGE COLUMNS(a, b) (PARTITION p0 VALUES LESS THAN (10, 20), PARTITION p1 VALUES LESS THAN (MAXVALUE, MAXVALUE));
Why this works
Two values match the two columns (a, b) in the COLUMNS clause.
What not to do
✕
Sources
Official documentation ↗
MySQL 8.0 — 3418 ER_PARTITION_WRONG_NO_PART_DATA
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev