mi_integer
mi_tab_niorows(MI_AM_TABLE_DESC *tableDesc)
Call this function from am_getnext and then loop through the scan as often as necessary to fill the reserved number of rows or until no more rows qualify. See mi_tab_setnextrow() for an example.
The maximum number of rows that am_getnext can place in shared memory.
A return value of 0 indicates that am_open or am_beginscan did not call the mi_tab_setniorows() function or that mi_tab_setniorows() returned an error. Thus, the database server did not reserve memory for multiple rows, and the access method must process only one row.
A negative return value indicates an error.
See the descriptions of functions mi_tab_setniorows() and mi_tab_setnextrow().