The SQLCA contains the following fields:
sqlcaid An 8-byte character field that contains the string SQLCA as an identification of the SQLCA structure. This field helps in debugging when you are looking at memory contents.
sqlcabc A long integer that contains the length in bytes of the SQLCA structure.
sqlcode A long integer that contains an error code when the database detects an error on a request. Definitions for the error codes are in the header file install-dir\SDK\Include\sqlerr.h. The error code is 0 (zero) for a successful operation, a positive value for a warning, and a negative value for an error.
You can access this field directly using the SQLCODE macro.
For a list of error codes, see SQL Anywhere error messages.
sqlerrml The length of the information in the sqlerrmc field.
UltraLite applications do not use this field.
sqlerrmc May contain one or more character strings to be inserted into an error message. Some error messages contain a placeholder string (%1) which is replaced with the text in this field.
UltraLite applications do not use this field.
UltraLite applications do not use this field.
sqlstate The SQLSTATE status value.
UltraLite applications do not use this field.
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |