Open the Result Set

Once a table object has been obtained using get_value, the TPF must open a result set on the table object using the open_result_set method of a_v4_extfn_proc_context before it can fetch any rows.

Calling open_result_set returns an instance of a_v4_extfn_table_context that the TPF can use to process table data. It also saves the table object in the table member of the a_v4_extfn_table_context object.

The following code snippet illustrates how open_result_set gets an instance of a_v4_extfn_table_context for fetching rows:
a_v4_extfn_table_context *  rs  = NULL;

ctx->open_result_set( ctx,
                    (a_v4_extfn_table *)value.data,
                     &rs ) );
Related reference
open_result_set
Table Context (a_v4_extfn_table_context)