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

mi_scan_forupdate()

The mi_scan_forupdate() function determines if the SELECT query includes a FOR UPDATE clause.

Syntax

mi_boolean mi_scan_forupdate(MI_AM_SCAN_DESC *scanDesc);
scanDesc
points to the scan descriptor.

Usage

The access method should protect data with the appropriate lock level for update transactions and possibly store user data for the am_update or am_delete purpose function.

To determine the lock level, call the mi_scan_locktype() access function.

Return Values

MI_TRUE indicates that the query includes a FOR UPDATE clause.

MI_FALSE indicates that the query does not include a FOR UPDATE clause.

Related Topics

See the description of accessor functions mi_scan_locktype() and mi_tab_mode().

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