The mi_scan_forupdate() accessor function

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.