Home | Previous Page | Next Page   Descriptor Function Reference > Accessor Functions >

mi_tab_unique()

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.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]