UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

Output Variable The following table describes the output variable. Return Codes The following table describes the EDADRV_ExecuteStmt return codes. 1-230 UniBasic Commands Reference Type Argument Description int * rowcount The number of the rows affected by the INSERT, UPDATE, or DELETE statement, or the number of columns in the result set, or the values of output and input/output parameters of a stored procedure. EDADRV_ExecuteStmt Output Variable Return Code Error Description 0 N/A Successful. 1 EDADRV_ERR_SYSTEM External system error. 2 EDADRV_SYSERR_OBJ_EXIST Object already exists. 101 EDADRV_ERR_MEMORY Internal memory allocation error. 103 EDADRV_INVALID_STATEMENT_ID Invalid statement handle. 111 EDADRV_INVALID_PARAM_TYPE Invalid parameter type 112 EDADRV_INVALID_DATATYPE Invalid data type 113 EDADRV_TOO_MANY_OUT_PARAM Too many output parameters. EDADRV_ExecuteStmt Return Codes

EDADRV_FetchStmt Syntax RETCODE EDADRV_FetchStmt(stmthdl,direction,numrows,rowsfetched, result) Description The EDADRV_FetchStmt function fetches numrows rows from an open cursor. Currently, EDA only uses forward scrolling. EDA expects the result set to be returned in a string format. The rows of the result are separated with record marks (EDADRV_ATTR_RM) and column values within each row separated with the NULL character (“\0”). In order to hold the result set, the EDADRV_FetchStmt function allocates a buffer. This buffer can only be freed by the EDADRV_FreeResult function. Input Variables The following table describes the input variables. Type Variable Description EDA_T_STMT_HDL stmthdl The statement handle. int direction The fetch direction. Valid values are: 0 – Fetch Forward int numrows The number of rows to fetch. EDADRV_FetchStmt Input Variables EDADRV_FetchStmt 1-231

Output Variable<br />

The following table describes the output variable.<br />

Return Codes<br />

The following table describes the EDADRV_ExecuteStmt return codes.<br />

1-230 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

Type Argument Description<br />

int * rowcount The number of the rows affected by the INSERT, UPDATE,<br />

or DELETE statement, or the number of columns in the result<br />

set, or the values of output and input/output parameters of a<br />

stored procedure.<br />

EDADRV_ExecuteStmt Output Variable<br />

Return<br />

Code Error Description<br />

0 N/A Successful.<br />

1 EDADRV_ERR_SYSTEM External system error.<br />

2 EDADRV_SYSERR_OBJ_EXIST Object already exists.<br />

101 EDADRV_ERR_MEMORY Internal memory allocation error.<br />

103 EDADRV_INVALID_STATEMENT_ID Invalid statement handle.<br />

111 EDADRV_INVALID_PARAM_TYPE Invalid parameter type<br />

112 EDADRV_INVALID_DATATYPE Invalid data type<br />

113 EDADRV_TOO_MANY_OUT_PARAM Too many output parameters.<br />

EDADRV_ExecuteStmt Return Codes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!