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

mi_tab_setniorows()

The mi_tab_setniorows() function indicates:

Syntax

mi_integer mi_tab_setniorows(MI_AM_TABLE_DESC *tableDesc,
   mi_integer nrows)
tableDesc
points to the index descriptor.
nrows
specifies the maximum number of rows that am_getnext or am_insert processes.

Usage

The access method must call this function in either am_open or am_beginscan. Multiple calls to mi_tab_setniorows() during the execution of a single statement cause an error.

A secondary access method can set up a multiple-row area in shared memory for use in one or both of the following purpose functions:

Return Values

The integer indicates the actual number of rows for which the database server allocates memory. Currently, the return value equals nrows. A zero or negative return value indicates an error.

Related Topics

See the descriptions of functions mi_tab_niorows(), mi_tab_nextrow(), and mi_tab_setnextrow().

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