Sequence of Status Records
If there are two or more records with the highest rank, it is undefined which
record is the first record. The order of all other records is undefined. In
particular, because warnings may appear before errors, applications should check
all status records when a function returns a value other than SQL_SUCCESS.
Errors. Status records that describe errors have the highest rank. Among error
records, records that indicate a transaction failure or possible transaction failure
outrank all other records. If two or more records describe the same error
condition, then SQLSTATEs defined by the X/Open CLI specification (classes 03
through HZ) outrank ODBC- and driver-defined SQLSTATEs.
Implementation-defined No Data values. Status records that describe driver-defined No Data values (class 02) have
the second highest rank.
Warnings. Status records that describe warnings (class 01) have the lowest rank. If
two or more records describe the same warning condition, then warning SQLSTATEs
defined by the X/Open CLI specification outrank ODBC- and driver-defined
SQLSTATEs.