Error and Status Returns

Most functions of the ESQL-LIB interface return specific exception conditions. These conditions are returned to a variable that you declare called SQLCODE or SQLSTATE. If you use the Preprocessor, you must declare SQLCODE or SQLSTATE:

long SQLCODE;
char SQLSTATE[6]; 

The Preprocessor references SQLCODE or SQLSTATE for each ESQL statement that can return an ESQL exception. If you use ESQL-LIB directly, you must explicitly bind SQLCODE or SQLSTATE to ESQL prior to each function that sets a value for SQLCODE or SQLSTATE using the sqlcdbind() function. For more information on using SQLCODE or SQLSTATE and their possible values, see Programming with ESQL."


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095