CREATE TABLE t1 (pk INT AUTO_INCREMENT PRIMARY KEY) PARTITION BY KEY (pk) PARTITIONS 2; INSERT INTO t1 VALUES (NULL),(NULL); UPDATE t1 SET pk = 2147483647; ERROR 23000: Duplicate entry '2147483647' for key 'PRIMARY' REPLACE INTO t1 VALUES (NULL); ERROR 22003: Out of range value for column 'pk' at row 1 DROP TABLE t1;