ODBC Server Reference Manual
Stored Procedures
HP NonStop ODBC Server Reference Manual—429151-002
5-51
Shell Routines Interface
err_num: IN: error number associated with spelib_error text
buffer: IN/OUT: pointer to the output buffer
reply_err: IN/OUT: pointer to the reply error
Returns: if successful -- SPELIB_OK
else -- an SPELIB error
___________________________________________________________________*/
short int encode_spelib_error( void *env
, unsigned long int max_len
, short int err_num
, char *buffer
, short int *reply_err
);
encode_sql_diagnostic
extern
/*_____________________________________________________________________
This function encodes an SQL diagnostic SQLCA struct into the output
buffer. If it detects an SPELIB_BUFFER_OVERFLOW condition, it will
invoke the CALL-BACK facility.
env: IN: pointer to SPELIB environment object
max_len: IN: the maximum output buffer size in bytes
SQLCA: IN: pointer to SQLCA struct holding sql diagnostics
buffer: IN/OUT: pointer to the output buffer
reply_err: IN/OUT: pointer to the reply error
Returns: if successful -- SPELIB_OK
else -- an SPELIB error
___________________________________________________________________*/
short int encode_sql_diagnostic( void *env
, unsigned long int max_len
, void *SQLCA
, char *buffer
, short int *reply_err
);
get_data_len
extern
/*_____________________________________________________________________
This function determines the length of the data in the SQLDA.
sqlvar: IN: pointer to the current sqlvar entry
Returns: if successful -- len
else -- 0
___________________________________________________________________*/
short int get_data_len(struct SQLVAR_TYPE *sqlvar);
get_input_params
extern
/*_____________________________________________________________________
This function decodes the input parameters from the output buffer.
env: IN: pointer to SPELIB environment object
reply_err: IN/OUT: pointer to the reply error
max_len: IN: the maximum output buffer size in bytes