ODBC Server Reference Manual
Stored Procedures
HP NonStop ODBC Server Reference Manual—429151-002
5-47
Shell Routines Interface
void *allocate_SQLDA( short int num_entries
, boolean need_names_buffer
);
assign_names_buffer
extern
/*_____________________________________________________________________
This function assigns the names_buffer pointer to the address
immediately following the SQLDA.
SQLDA: IN: pointer to the SQLDA struct area
Returns: if successful -- pointer to Names Buffer area
else -- NULL
___________________________________________________________________*/
void *assign_names_buffer(void *SQLDA);
encode_end_proc
extern
/*_____________________________________________________________________
This function encodes an end proc token 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
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_end_proc( void *env
, unsigned long int max_len
, char *buffer
, short int *reply_err
);
encode_end_statement
extern
/*_____________________________________________________________________
This function encodes an end statement token 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_end_statement( void *env
, unsigned long int max_len
, void *SQLCA