DROP TABLE IF EXISTS ids;
CREATE TABLE ids (
id INT NOT NULL
) ENGINE=Mroonga;
INSERT INTO ids VALUES (1);
INSERT INTO ids VALUES (2);
ALTER TABLE ids ADD PRIMARY KEY (id);
INSERT INTO ids VALUES (1);
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
SELECT * FROM ids WHERE id = 2;
id
2
DROP TABLE ids;
