skip to main content
IP API Reference for Java : Connection-level Methods for Java : sqlipError
 

sqlipError

This connection-level method returns the error during the last operation on this object. If one or more errors are available, return one error and clear the rest. When the error is returned, delete the error from the list of errors on the specified statement or connection. If no errors are available, return OADS_NO_DATA to indicate no more errors are present.
int sqlipError(
StringBuffer sSqlState,
xo_int piNativeError,
StringBuffer sErrorText);
 
Table 70: Parameters for sqlipError 
Parameter
Type
Description
OUTPUT
 
 
sSqlState
StringBuffer
SQL state string if sSqlState is not NULL. Returns an empty string if no errors available.
piNativeError
xo_int
Integer value indicating a native error. This code will be made available to the client application. Provide this if piNativeError is not NULL.
sErrorText
StringBuffer
Error message of length SQLDRV_MAX_MESSAGE_LENGTH or less if sErrorText is not NULL. Returns an empty string if no errors available.
RETURN
 
 
 
int
OADS_SUCCESS - error is being returned
OADS_NO_DATA – no errors available
OADS_ERROR – error in processing error request