Three functions are provided which access slots of sql-database-error, allowing you to discover more about the actual error that occurred.
sql-error-error-id
and
sql-error-secondary-error-id
return primnary and secondary error identifiers. If you use these, please read the detailed description in sql-database-error.
sql-error-database-message
is a string (maybe
nil
) returned by the foreign code.