Table 10-2. C Identifiers Generated By The Include Sqlda Directive; Table 10-3. Sqlda Structure Fields - HP NonStop SQL/MP Programming Manual

For c
Table of Contents

Advertisement

Dynamic SQL Operations
Table 10-2
describes the C identifiers generated by an INCLUDE SQLDA directive.
Always use the symbolic names rather than the actual values because the values can
change in a new RVU.

Table 10-2. C Identifiers Generated by the INCLUDE SQLDA Directive

Name
SQLDA_EYE_CATCHER
SQLDA_HEADER_LEN
SQLDA_SQLVAR_LEN
SQLDA_NAMESBUF_OVHD_LEN
Table 10-3
describes each field in a version 315 (or later) SQLDA structure.
Table 10-3. SQLDA Structure Fields (page 1 of 2)
Field Name
eye_catcher
num_entries
sqlvar
data_type
HP NonStop SQL/MP Programming Manual for C—429847-008
Value
D1
4
24
11
Description
An identifying field that a program must initialize. NonStop SQL/MP does
not return a value to eye_catcher.
Number of input or output parameters the SQLDA structure can contain.
Group item that describes input parameters or database columns. The
DESCRIBE INPUT and DESCRIBE statements return one sqlvar entry
for each input parameter or each output variable.
Data type of the parameter. For the data_type values, see
on page 10-8.
10-5
SQLDA Structure, Names Buffer, and Collation
Description
Eye-catcher value. Use this identifier to
initialize the eye_catcher field in the
SQLDA structure:
strncpy(sqlda.eye_catcher,
SQLDA_EYE_CATCHER,2);
where sqlda is the name of the SQLDA
structure.
The length in bytes of the SQLDA
structure header fields eye_catcher and
num_entries.
The length in bytes of one SQLVAR entry.
The overhead length in bytes added to the
names buffer. This overhead is the length
field (2 bytes), table name (8 bytes), and
period separator (1 byte).
Buffer
Table 10-4

Advertisement

Table of Contents
loading

Table of Contents