/*
 WARNING!  This is a machine-generated file -- do not hand edit.
 To make this file, edit CATALOG\ERROR.ASC, then run the commands
     cd pat\catalog
     nmake init
     makehdrs

 Copyright (c) 1993-1994 Raima Corporation.  All Rights Reserved.
*/

typedef struct rsqlerror {
    short  errcode;
    short  errtype;
    short  errinfo;
    short  callback;
    char   sqlstate[6];
    char  *msg;
} RSQLERROR;

static RSQLERROR rsql_errtab[] = {
{SQL_INVALID_HANDLE,     -2, 0, 0, "02002", "null statement or connection handle"},
{SQL_ERROR,              -1, 0, 0, "02001", "an SQL error was detected"},
{SQL_SUCCESS,             0, 0, 0, "00000", "success"},
{SQL_SUCCESS_WITH_INFO,   1, 0, 0, "01000", "success with warning"},
{SQL_STILL_EXECUTING,     2, 0, 0, "01000", "still executing"},
{SQL_NEED_DATA,          99, 0, 0, "01000", "not all parameters have been set"},
{SQL_NO_DATA_FOUND,     100, 0, 0, "02000", "no data found"},
{errDISCONNECT,           1, 0, 0, "01002", "disconnect error."},
{errCHTRUNC,              1, 0, 0, "01004", "data truncation"},
{errNOTREVOKED,          -1, 1, 0, "01006", "privilege not revoked:"},
{errNOTGRANTED,          -1, 1, 0, "01007", "privilege not granted:"},
{errINFOPATLEN,           1, 0, 0, "01009", "search condition too long for info schema"},
{errINFOEXPLEN,           1, 0, 0, "0100A", "query expression too long for info schema"},
{errNEXTTIME,             1, 0, 0, "01R01", "option becomes active at next fcn call"},
{errRAIMAEXT,             1, 0, 0, "01R02", "this Raima extension may not be portable"},
{errIGNORED,              1, 0, 0, "01R03", "option allowed but ignored"},
{errENVHANDLE,           -2, 0, 0, "02002", "invalid environment handle"},
{errCONHANDLE,           -2, 0, 0, "02002", "invalid connection handle"},
{errSTMTHANDLE,          -2, 0, 0, "02002", "invalid statement handle"},
{errNUMPAR,              -1, 0, 0, "07001", "insufficient number of parameters specified"},
{errNOTCURSOR,           -1, 0, 0, "07005", "prepared statement is not a valid cursor"},
{errTYPEATTR,            -1, 0, 0, "07006", "data value cannot be converted to C type"},
{errCONNECTION,          -1, 0, 0, "08000", "connection exception"},
{errNOSERVER,            -1, 0, 0, "08001", "unable to connect to specified server"},
{errSRVOPEN,             -1, 0, 0, "08002", "connection is in use"},
{errNOTOPEN,             -1, 0, 0, "08003", "connection is not open"},
{errSRVREJECT,           -1, 0, 0, "08004", "connection timeout - retry"},
{errCONTRANS,            -1, 0, 0, "08007", "connection failure during transaction"},
{errSERVER,              -1, 0, 0, "08S01", "communication link failure"},
{errCURSOROP,            -1, 0, 0, "09000", "cursor operation conflict"},
{errCARDINALITY,         -1, 0, 0, "21000", "cardinality violation"},
{errVIEWMISMATCH,        -1, 0, 0, "21000", "number of view columns does not match select"},
{errNUMFCNARGS,          -1, 1, 0, "21000", "incorrect number of function arguments: "},
{errINSERTVALS,          -1, 0, 0, "21S01", "insert value list does not match column list"},
{errINSERTCOLS,          -1, 0, 0, "21S02", "degree of table does not match column list"},
{errDATA,                -1, 0, 0, "22000", "data exception"},
{errSTRTRUNC,            -1, 0, 0, "22001", "string truncated"},
{errTOOLONG,             -1, 0, 0, "22001", "string too long or missing ending quote"},
{errRANGE,               -1, 0, 0, "22003", "numeric value out of range"},
{errDATALOST,            -1, 0, 0, "22003", "significant data lost due to truncation"},
{errASGT,                -1, 0, 0, "22005", "error in assignment"},
{errDATETIMEOVF,         -1, 0, 0, "22008", "date/time field overflow"},
{errDIVBY0,              -1, 0, 0, "22012", "division by zero"},
{errSTRMISMATCH,         -1, 0, 0, "22026", "string data, length mismatch"},
{errINTEGRITY,           -1, 1, 0, "23000", "integrity constraint violation: "},
{errCURSTATE,            -1, 0, 0, "24000", "invalid cursor state"},
{errNOTSELECT,           -1, 0, 0, "24000", "statement type is not select"},
{errNOTREPORT,           -1, 0, 0, "24000", "statement type is not report"},
{errTRANSACT,            -1, 0, 0, "25000", "invalid transaction state"},
{errTXACTIVE,            -1, 0, 0, "25000", "a transaction is already active"},
{errTXNOTACTIVE,         -1, 0, 0, "25000", "no transaction is active"},
{errTXSYNC,              -1, 0, 0, "25000", "transaction out of sync between sql and server"},
{errINVUSER,             -1, 0, 0, "28000", "invalid user authorization"},
{errSYNTAX,              -1, 1, 0, "37000", "syntax error: "},
{errPATTERN,             -1, 0, 0, "37000", "error in regular expression"},
{errPATHSPEC,            -1, 0, 0, "37000", "error in path specification"},
{errDISTINCT,            -1, 0, 0, "37000", "invalid 'distinct' specified"},
{errFCNARG,              -1, 0, 0, "37000", "invalid function argument"},
{errDBNOTOPEN,           -1, 0, 0, "37000", "database not open"},
{errUNDEFDB,             -1, 1, 0, "37000", "undefined database: "},
{errNOTNULL,             -1, 1, 0, "37000", "must specify value for column: "},
{errVALTYPE,             -1, 1, 0, "37000", "incompatible value type for column: "},
{errDBAPK,               -1, 1, 0, "37000", "db_addr primary keys are auto-generated:"},
{errMIXEDMODE,           -1, 1, 0, "37000", "incompatible data types in expression: "},
{errCURMISMATCH,         -1, 0, 0, "37000", "update/delete invalid on specified cursor"},
{errDBAPKUPD,            -1, 1, 0, "37000", "updates to db_addr primary key not allowed: "},
{errREFPKUPD,            -1, 1, 0, "37000", "non-zero references on primary/unique key: "},
{errNOPKUPD,             -1, 1, 0, "37000", "updates to primary/unique keys not allowed: "},
{errUNRELFK,             -1, 0, 0, "37000", "foreign key not related to specified table"},
{errUNDEFFK,             -1, 0, 0, "37000", "undefined foreign key"},
{errNOPATH,              -1, 0, 0, "37000", "invalid access path"},
{errSORTLIMIT,           -1, 0, 0, "37000", "too many order by fields specified"},
{errSORTSIZE,            -1, 0, 0, "37000", "total length of sort fields exceeds limit"},
{errWHERECALCS,          -1, 0, 0, "37000", "aggregate functions not allowed in where"},
{errPARAMREF,            -1, 0, 0, "37000", "improper parameter marker placement "},
{errTOOMANYROWS,         -1, 0, 0, "37000", "subquery must return only one row"},
{errDBNOTREFD,           -1, 1, 0, "37000", "database not referenced in defining select"},
{errNOTUPDATEABLE,       -1, 0, 0, "37000", "view is not updateable"},
{errVIEWCOLS,            -1, 0, 0, "37000", "view column list must be specified"},
{errRESTRICT,            -1, 0, 0, "37000", "view dependencies exist, drop not allowed"},
{errBADFORMAT,           -1, 1, 0, "37000", "invalid convert format:"},
{errPARAMTYPE,           -1, 0, 0, "37000", "incompatible parameter type"},
{errESCAPE,              -1, 0, 0, "37000", "escape clause syntax error"},
{errCD_BADCOL,           -1, 1, 0, "37000", "column must be of type c_data: "},
{errCD_NOELTNAME,        -1, 1, 0, "37000", "must specify element name from column: "},
{errCD_BADELTNAME,       -1, 1, 0, "37000", "column does not contain element name: "},
{errCD_NUMSUBS,          -1, 1, 0, "37000", "incorrect number of subscripts on: "},
{errCD_SUBTYPE,          -1, 1, 0, "37000", "subscript must be smallint value: "},
{errCD_SUBRANGE,         -1, 1, 0, "37000", "subscript out of range: "},
{errCD_HASCDATA,         -1, 0, 0, "37000", "can't modify tables containing c_data columns"},
{errDUPCURSOR,           -1, 0, 0, "3C000", "duplicate cursor name"},
{errSERIAL,              -1, 0, 0, "40001", "transaction terminated to prevent deadlock"},
{errACCESS,              -1, 1, 0, "42000", "user access rights violation: "},
{errCHECKOPT,            -1, 0, 0, "44000", "'with check' option violation"},
{errABORT,               -1, 0, 0, "70100", "operation aborted"},
{errNOTSUPPORTED,        -1, 0, 0, "IM001", "function not supported"},
{errBADTABLE,            -1, 1, 0, "S0000", "invalid table name: "},
{errDUPTABLE,            -1, 1, 0, "S0001", "duplicate table: "},
{errNOTABLE,             -1, 1, 0, "S0002", "table not found: "},
{errDUPVIEW,             -1, 1, 0, "S0003", "duplicate view: "},
{errNOVIEW,              -1, 1, 0, "S0004", "view not found: "},
{errDUPINDEX,            -1, 1, 0, "S0011", "index already exists: "},
{errNOINDEX,             -1, 1, 0, "S0012", "index not found: "},
{errBADCOLUMN,           -1, 1, 0, "S0020", "invalid column name: "},
{errDUPCOLUMN,           -1, 1, 0, "S0021", "column already exists: "},
{errNOCOLUMN,            -1, 1, 0, "S0022", "column not found: "},
{errBADPROC,             -1, 1, 0, "S0R00", "invalid procedure name: "},
{errDUPPROC,             -1, 1, 0, "S0R01", "duplicate procedure name: "},
{errBADFUNC,             -1, 1, 0, "S0R02", "invalid function: "},
{errDUPFUNC,             -1, 1, 0, "S0R03", "duplicate user-defined function name: "},
{errBADUSER,             -1, 1, 0, "S0R04", "invalid user name: "},
{errDUPUSER,             -1, 1, 0, "S0R05", "duplicate user name: "},
{errBADFILTER,           -1, 1, 0, "S0R06", "invalid filter: "},
{errDUPFILTER,           -1, 1, 0, "S0R07", "duplicate filter name: "},
{errNOTOPTIONAL,         -1, 1, 0, "S0R08", "index is not optional: "},
{errACTINDEX,            -1, 0, 0, "S0R09", "statement uses a deactivated optional index"},
{errOLDVERSION,          -1, 1, 0, "S0R10", "view/proc ref's outdated version of db: "},
{errDUPDB,               -1, 1, 0, "S0R11", "database already exists: "},
{errGENERAL,             -1, 1, 0, "S1000", "processing error: "},
{errDRVMEMORY,           -1, 0, 0, "S1001", "insufficient memory on client"},
{errSRVMEMORY,           -1, 0, 0, "S1001", "insufficient memory on server"},
{errCOLNUMBER,           -1, 0, 0, "S1002", "column number out of range"},
{errPROGTYPE,            -1, 0, 0, "S1003", "program type argument out of range"},
{errSQLTYPE,             -1, 0, 0, "S1004", "SQL data type argument out of range"},
{errCANCELED,            -1, 0, 0, "S1008", "operation cancelled"},
{errINVARG,              -1, 0, 0, "S1009", "invalid argument value"},
{errFCNSEQ,              -1, 0, 0, "S1010", "function call sequence error"},
{errOPENHDBCS,           -1, 0, 0, "S1010", "must free all connection handles first"},
{errPREPARED,            -1, 0, 0, "S1010", "statement not prepared"},
{errEXECUTED,            -1, 0, 0, "S1010", "statement has not been executed"},
{errCLOSESERVER,         -1, 0, 0, "S1010", "connection not closed"},
{errCANCELFIRST,         -1, 0, 0, "S1010", "must call SQLCancel first"},
{errTXTYPE,              -1, 0, 0, "S1012", "invalid transaction operation code"},
{errNOCURSOR,            -1, 0, 0, "S1015", "no cursor name available"},
{errBADDATALEN,          -1, 0, 0, "S1090", "invalid string or buffer length"},
{errDESCRANGE,           -1, 0, 0, "S1091", "descriptor type out of range"},
{errOPTIONRANGE,         -1, 0, 0, "S1092", "option type out of range"},
{errPARNO,               -1, 0, 0, "S1093", "parameter number out of range"},
{errSCALE,               -1, 0, 0, "S1094", "invalid scale value"},
{errFCNRANGE,            -1, 0, 0, "S1095", "function type out of range"},
{errINFORANGE,           -1, 0, 0, "S1096", "information type out of range"},
{errCOLRANGE,            -1, 0, 0, "S1097", "column type out of range"},
{errSCOPERANGE,          -1, 0, 0, "S1098", "scope type out of range"},
{errNULLRANGE,           -1, 0, 0, "S1099", "nullable type out of range"},
{errUNIQRANGE,           -1, 0, 0, "S1100", "uniqueness option type out of range"},
{errACCRANGE,            -1, 0, 0, "S1101", "accuracy option type out of range"},
{errTABRANGE,            -1, 0, 0, "S1102", "table type out of range"},
{errDIRRANGE,            -1, 0, 0, "S1103", "direction option out of range"},
{errFETCHTYPE,           -1, 0, 0, "S1106", "fetch type out of range"},
{errROWVALUE,            -1, 0, 0, "S1107", "row value out of range"},
{errCONRANGE,            -1, 0, 0, "S1108", "concurrency option out of range"},
{errNOKEYSET,            -1, 0, 0, "S1109", "invalid cursor position: no keyset defined"},
{errNOTCAPABLE,          -1, 0, 0, "S1C00", "driver not capable"},
{errINVCONVERT,          -1, 1, 0, "S1C00", "invalid conversion: "},
{errTBD,                 -1, 0, 0, "S1C00", "capability not yet implemented"},
{errNODATANEEDED,        -1, 0, 0, "S1DE0", "no data pending for execution values"},
{errTIMEOUT,             -1, 1, 0, "S1T00", "timeout expired: "},
{errRAIMAERRS,           -1, 0, 0, "RX000", "Raima dependent error codes"},
{errNULLPTR,             -1, 0, 0, "RX001", "unexpected NULL pointer"},
{errCGTFH,               -1, 0, 0, "RX003", "this data not available from this function"},
{errBADCODE,             -1, 0, 0, "RX004", "invalid error/status code"},
{errCALCSEQ,             -1, 0, 0, "RX005", "break calc column binding sequence error"},
{errNOCALCS,             -1, 0, 0, "RX006", "report contains no break calculations"},
{errSTMTLIMIT,           -1, 0, 0, "RX007", "no more stmt handles available on server"},
{errTRANSID,             -1, 0, 0, "RX008", "invalid transaction identifier"},
{errDLLERR,              -1, 0, 0, "RX009", "system error in SQL dynamic/shared library"},
{errOPEN,                -1, 1, 0, "RX010", "database already open: "},
{errDBUNAVAIL,           -1, 1, 0, "RX011", "database not available: "},
{errNOSTATS,             -1, 1, 0, "RX012", "update stats has not been run on database: "},
{errLOADMOD,             -1, 1, 0, "RX013", "unable to load module: "},
{errBADMOD,              -1, 1, 0, "RX014", "invalid module for user-defined functions: "},
{errBADDEVICE,           -1, 1, 0, "RX015", "invalid device: "},
{errUDF,                 -1, 1, 0, "RX016", "user-defined function error: "},
{errUDFNOVAL,            -1, 1, 0, "RX017", "no result from user-defined function: "},
{errUDFNORESET,          -1, 1, 0, "RX018", "no reset callback for aggregate user-defined fun"},
{errBADSYSCAT,           -1, 0, 0, "RX019", "unable to open system catalog"},
{errIEF,                 -1, 1, 0, "RX020", "filter error: "},
{errVIEWTEMPREF,         -1, 1, 0, "RX021", "a view cannot reference temporary table: "},
{errPROCTEMPREF,         -1, 1, 0, "RX022", "a procedure cannot reference temporary table: "},
{errNOTTEMP,             -1, 1, 0, "RX023", "not a temporary table: "},
{errCANTINST,            -1, 1, 0, "RX024", "can't create instance with foreign keys to other dbs: "},
{errOUTOFSPACE,          -1, 0, 0, "RX025", "out of space on disk"},
{errSYSTEM,              -1, 1, 0, "RX999", "system error: "}
};
static const short noerrs = RLEN(rsql_errtab);

/*
$Header:   P:/PAT/INCLUDE/VCS/ERRTAB.H_V   1.55   17 Feb 1995 16:47:02   BRADB  $
*/
