When an error in the ODBC layer occurs, predicates in
error/2 exceptions. Both arguments of the
error/2 exception are the same and has the following form
odbc_error(Detail, Goal), where
some goal where the error occurred, and Detail gives more
information about the error. The Detail term can have the
Thrown in case of a error when converting to or from a SICStus data type from or to an ODBC data type.
Thrown when an SQL data type is unsupported when converting to or from a SICStus data type from or to an ODBC data type.
Thrown when an unknown SQL data type is found when converting to or from a SICStus data type from or to an ODBC data type.
Thrown when the Prolog data is of a type incompatible with the SQL data type when converting from a SICStus data type to an ODBC data type.
Thrown in case of a error in the native code of
invalid_handle(handle_type, InvalidHandle, ReturnCode)
Thrown when an invalid handle type is specified.
Thrown when an invalid handle is specified.
Thrown when a Result Set handle is invalid.
Thrown when an unknown option was given when calling
Thrown when an internal error occurs in
report this to SICStus Support.
Thrown when an error occurs in the ODBC layer, e.g. a SQL syntax error. Recs is bound to the diagnostic records reported from ODBC.
Thrown when some operation runs out of memory.
there may be other Details and new Details may be added in the future.