The condition class
is used to signal errors in the database interface that Common SQL uses.
returns the primary error indentifier. On ODBC the value is a string. On Oracle it is some number, the "v2 return code" in the Cursor Data Area.
returns the secondary error indentifier. On ODBC this is the error code from the underlying database. On Oracle that is the "v4 return code" (also known as "return code") in the Cursor Data Area, which is the useful code.
is a string (maybe
) that came back from the foreign code.
Note: ODBC drivers for Oracle return the "v4 return code" as the underlying database code. Therefore in the event of an error on connection to an Oracle database,
always returns the "v4 return code" whether the connection is through ODBC.
LispWorks Reference Manual - 20 Jul 2006