/* SQLSTATE.H generated 17-MAY-2011 10:40:02.85 by Oracle SQL V7.2-501 */ /* Copyright (c) 2000, 2011, Oracle Corporation. All Rights Reserved. */ #ifndef _SQLSTATE_H_ #define _SQLSTATE_H_ #define SQLSTATE_LEN 5 /* success */ #define SQLSTATE_SUCCESS "00000" /* warning - generic */ #define SQLSTATE_WARNING "01000" /* null value eliminated in set function */ #define SQLSTATE_NULL_ELIM "01003" /* string data - right truncation */ #define SQLSTATE_WARN_TRUNC "01004" /* no data */ #define SQLSTATE_NO_DATA "02000" /* connection name in use */ #define SQLSTATE_CONN_NAME "08002" /* connection does not exist */ #define SQLSTATE_CONN_UNKNOWN "08003" /* connection failure */ #define SQLSTATE_CONN_FAIL "08006" /* trigger action exception */ #define SQLSTATE_TRIG_ERROR "09000" /* case not found for case statement */ #define SQLSTATE_CASE_NOELSE "20000" /* cardinality violation */ #define SQLSTATE_CARD_VIOLATION "21000" /* string data - right truncation */ #define SQLSTATE_DATA_TRUNC "22001" /* null value - no indicator parameter */ #define SQLSTATE_DATA_NULL "22002" /* numeric value out of range */ #define SQLSTATE_DATA_RANGE "22003" /* null value not allowed */ #define SQLSTATE_DATA_NONULL "22004" /* error in assignment */ #define SQLSTATE_DATA_ASSIGN "22005" /* invalid datetime format */ #define SQLSTATE_DATA_DT_FORMAT "22007" /* datetime field overflow */ #define SQLSTATE_DATA_DT_OFLOW "22008" /* invalid indicator parameter value */ #define SQLSTATE_DATA_INV_INDICATOR "22010" /* substring error */ #define SQLSTATE_DATA_SUBSTR "22011" /* division by zero */ #define SQLSTATE_DATA_DIV_ZERO "22012" /* datetime field overflow */ #define SQLSTATE_DATA_DTI_OFLOW "22015" /* invalid character value for cast */ #define SQLSTATE_DATA_CAST "22018" /* invalid limit value */ #define SQLSTATE_DATA_INV_LIMIT "22020" /* indicator overflow */ #define SQLSTATE_DATA_IND_OVERFLOW "22022" /* invalid parameter value */ #define SQLSTATE_DATA_INV_PARAM "22023" /* unterminated C string */ #define SQLSTATE_DATA_C_STRING "22024" /* invalid escape sequence */ #define SQLSTATE_DATA_INV_ESCAPE "22025" /* trim error */ #define SQLSTATE_DATA_TRIM "22027" /* invalid regular expression */ #define SQLSTATE_DATA_INV_REGEXP "2201B" /* zero length character string */ #define SQLSTATE_DATA_ZLEN_STRING "2200F" /* integrity constraint violation */ #define SQLSTATE_INTEG_CONSTR "23000" /* invalid cursor state */ #define SQLSTATE_CURS_INV_STATE "24000" /* invalid transaction state */ #define SQLSTATE_TRAN_INV_STATE "25000" /* active SQL transaction */ #define SQLSTATE_TRAN_ACTIVE "25001" /* read-only SQL transaction */ #define SQLSTATE_TRAN_READONLY "25006" /* invalid statement name */ #define SQLSTATE_STMT_INV_NAME "26000" /* SQL routine exception */ #define SQLSTATE_ROUT_ERROR "2F000" /* function did not execute return statement */ #define SQLSTATE_ROUT_RETURN "2F005" /* Oracle Rdb: database specification syntax error */ #define SQLSTATE_DBENV_SYNTAX "37000" /* external routine exception */ #define SQLSTATE_ERTN_ERROR "38000" /* external routine invocation exception */ #define SQLSTATE_ERTN_CALL_ERROR "39000" /* invalid SQLSTATE returned */ #define SQLSTATE_ERTN_INV_SQLSTATE "39001" /* null value not allowed */ #define SQLSTATE_ERTN_NULL_INV "39004" /* savepoint exception */ #define SQLSTATE_SAVEPOINT_ERROR "3B000" /* savepoint exception - invalid specification */ #define SQLSTATE_SAVEPOINT_INVSPEC "3B001" /* savepoint exception - too many */ #define SQLSTATE_SAVEPOINT_TOO_MANY "3B002" /* savepoint exception - can not use from function or trigger */ #define SQLSTATE_SAVEPOINT_BADLOC "3B503" /* syntax error or access rule violation */ #define SQLSTATE_SYNTAX_ERROR "42000" /* with check option violation */ #define SQLSTATE_VIEW_CHECK "44000" /* invalid SQLSTATE value */ #define SQLSTATE_INV_SQLSTATE "0H000" /* Oracle Rdb: deadlock */ #define SQLSTATE_DEADLOCK "R1001" /* Oracle Rdb: lock conflict */ #define SQLSTATE_LOCK_CONFLICT "R1002" /* Oracle Rdb: duplicate value not allowed in index */ #define SQLSTATE_NO_DUP "R2000" /* Oracle Rdb: distibuted transaction id error */ #define SQLSTATE_DIST_TRAN_ID "R4000" /* Oracle Rdb: table is read only */ #define SQLSTATE_RO_TABLE "R5000" /* Oracle Rdb: obsolete metadata */ #define SQLSTATE_OBS_METADATA "R6000" /* Oracle Rdb: table is not un reserving list for transaction */ #define SQLSTATE_UNRES_REL "R7000" /* Oracle Rdb: unspecified error */ #define SQLSTATE_UNSPEC_ERROR "RR000" /* Oracle Rdb: no implicit transaction allowed */ #define SQLSTATE_NOIMP_TRANS "S0000" /* Oracle Rdb: bad context version */ #define SQLSTATE_CTX_BAD_VER "S1001" /* Oracle Rdb: bad context type */ #define SQLSTATE_CTX_BAD_TYPE "S1002" /* Oracle Rdb: bad context length */ #define SQLSTATE_CTX_BAD_LEN "S1003" /* Oracle Rdb: base row was already deleted */ #define SQLSTATE_BASE_ROW_DEL "S2000" /* Oracle Rdb: alias name in not known */ #define SQLSTATE_ALIAS_UNKNOWN "S4001" /* Oracle Rdb: alias name in use */ #define SQLSTATE_ALIAS_USED "S4002" /* Oracle Rdb: bad length */ #define SQLSTATE_BAD_LENGTH "S5001" /* Oracle Rdb: bad scale */ #define SQLSTATE_BAD_SCALE "S5002" /* Oracle Rdb: bad SQL version */ #define SQLSTATE_BAD_VERSION "S7000" #endif /* _SQLSTATE_H_ */