SQL/MP Programming Manual for C

Error and Status Reporting
HP NonStop SQL/MP Programming Manual for C429847-008
9-15
Using the SQLSA Structure
\
Example 9-4. Version 300-325 SQLSA Structure
struct SQLSA_TYPE
{
char eye_catcher[2];
short version;
union
{
struct DML_TYPE
{
short num_tables;
struct STATS_TYPE
{
char table_name[24];
long records_accessed;
long records_used;
long disc_reads;
long messages;
long message_bytes;
short waits;
short escalations;
char sqlsa_reserved[4];
} stats[16];
} dml;
struct PREPARE_TYPE
{
short input_num;
short input_names_len;
short output_num;
short output_names_len;
short name_map_len;
short sql_statement_type;
long output_collations_len;
} prepare;
} u;
} sqlsa;