The mi_tab_unique() accessor function

The mi_tab_unique() function determines if a CREATE INDEX statement specifies that the index contains only unique keys.

Syntax

mi_boolean mi_tab_unique(MI_AM_TABLE_DESC *tableDesc)
tableDesc
Points to the index descriptor.

Usage

The access method can call this function from the am_create or am_insert purpose function. As the access method builds an index, it checks for unique key values if the mi_tab_unique() function returns MI_TRUE.

Return values

MI_TRUE
Indicates that the secondary access method must enforce unique keys for this index.
MI_FALSE
Indicates that the secondary access method should not enforce unique keys for this index.