ODBC Server Reference Manual

Stored Procedures
HP NonStop ODBC Server Reference Manual429151-002
5-34
SPELIB Interface
sqlda
output
is a pointer to a SQL descriptor area. to be used for the input parameters. The
Pathway programmer must have allocated sufficient space for the SQLDA.
truncated
output
indicates whether the input parameter has been truncated.
SP_SRV_GET_INPUT_PARAMS
This function is used to extract the input parameters associated with a stored
procedure request.
env
input
is a pointer to the environment object STRUCT.
sqlda
output
is a pointer to a SQL descriptor area. The SQLDA contains VAR_PTR and
IND_PTR values pointing to valid memory locations. This function also sets the
NULL_INFO and IND_PTR values
SPELIB Functions for Encoding Replies
The functions described in this subsection enable a server program to encode the
result of a stored procedure execution for transmission back to the NonStop ODBC
server.
If an SP_SRV_ENCODE_xxx function returns an error code, the server class
programmer can use SP_SRV_ENCODE_SPELIB_ERROR to encode the SPELIB
error and send the buffer to the NonStop ODBC server using the value returned from
the SP_SRV_GET_BUFFERLEN function as the REPLY size or WRITE length.
short int SP_SRV_GET_INPUT_PARAMS
( void * env
, void * sqlda
)