SQL/MP Programming Manual for C
SQL/MP System Procedures
HP NonStop SQL/MP Programming Manual for C—429847-008
5-10
SQLCAGETINFOLIST
item_list
is an array of item codes that describes the information you want returned in the
result structure. For a list of these item codes, see Table 5-4 on page 5-11.
number_items
is the number of items you specified in the item_list array.
result
is a structure you define to receive the requested information. The items are
returned in the order you specified in item_list. Each item is aligned on a word
boundary.
result_max
is the maximum size, in bytes, of the result structure.
error_index
is the index of the SQLCA error or warning entry.
The SQLCA structure has a fixed set of fields (item codes 1 through 21) for errors
and warnings. In addition, SQLCA has a table of records (item codes 22 through
29), with each record describing one error or warning. NonStop SQL/MP uses
error_index to access this table to determine the error or warning.
If error_index is omitted, NonStop SQL/MP returns the first error record.
names_max
is the maximum length your program allows for procedure names or file names
(item codes 9, 13, and 19). Longer names are truncated (but no error results from
the truncation).
params_max
is the maximum length your program allows for parameter information (item codes
16 and 29). Parameter information that exceeds this length is truncated (but no
error results from the truncation).
result_len
is the total number of bytes used in the result structure.
error_item
is the index of the item being processed when the error occurred. The index starts
at 0 (zero).