SQL database system
 
Manual page for TDH(18-MAR-2004 TDH scg@jax.org)

Common error codes

Applications should check the status of every submitted SQL command. Some error conditions (as noted below) do not result in an error message.


0 success.

1 requested record not found. No message is issued.

7 record locked by another identity and unavailable for update. No message is issued. This code may be returned by SHSQL_sql() when a UPDATE or DELETE command is submitted, and by SHSQL_getrow() when SELECT..FOR UPDATE encounters a locked row.

9 the table is write-locked and the process couldn't gain access. This code may be returned by SHSQL_sql() when an INSERT, UPDATE, DELETE or SELECT..FOR UPDATE command is submitted.

20 attempt to update a database that has been set to read-only. This code may be returned by SHSQL_sql() when an INSERT, UPDATE, DELETE or SELECT..FOR UPDATE command is submitted.

Other - see the error message text.


Copyright Steve Grubb  


Markup created by unroff 1.0,    March 18, 2004.