CREATE TABLE tags (
name VARCHAR(64) PRIMARY KEY COLLATE 'utf8mb4_general_ci'
) DEFAULT CHARSET=utf8mb4;
CREATE TABLE bugs (
tag TEXT COMMENT 'flags "COLUMN_SCALAR|MISSING_NIL|INVALID_ERROR", type "tags"'
) DEFAULT CHARSET=utf8mb4;
INSERT INTO bugs VALUES ('nonexistent');
ERROR HY000: <bugs.tag>: failed to cast to <tags>: <"nonexistent">
SELECT mroonga_command('dump --dump_plugins no');
mroonga_command('dump --dump_plugins no')
table_create bugs TABLE_NO_KEY

table_create mroonga_operations TABLE_NO_KEY
column_create mroonga_operations record COLUMN_SCALAR UInt32
column_create mroonga_operations table COLUMN_SCALAR ShortText
column_create mroonga_operations type COLUMN_SCALAR ShortText

table_create tags TABLE_PAT_KEY ShortText --normalizer NormalizerMySQLGeneralCI
column_create tags name COLUMN_SCALAR ShortText

column_create bugs tag COLUMN_SCALAR|MISSING_NIL tags
SELECT * FROM bugs;
tag
SELECT * FROM tags;
name
DROP TABLE bugs;
DROP TABLE tags;
