These are the assigned SQLCODE values:
+
+ 0 (ECPG_NO_ERROR)
+
+ Indicates no error. (SQLSTATE 00000)
+
+
+
+
+
+ 100 (ECPG_NOT_FOUND)
+
+ This is a harmless condition indicating that the last command
+ retrieved or processed zero rows, or that you are at the end of
+ the cursor. (SQLSTATE 02000)
+
+
+
+
-12 (ECPG_OUT_OF_MEMORY)
- Indicates that your virtual memory is exhausted. (SQLSTATE
+ Indicates that your virtual memory is exhausted. The numeric
+ value is defined as -ENOMEM. (SQLSTATE
YE001)
+
+ -207 (ECPG_NUMERIC_FORMAT)
+
+ The host variable is of type numeric and the datum
+ in the database is of another type and contains a value that
+ cannot be interpreted as a numeric value.
+ (SQLSTATE 42804)
+
+
+
+
+
+ -208 (ECPG_INTERVAL_FORMAT)
+
+ The host variable is of type interval and the datum
+ in the database is of another type and contains a value that
+ cannot be interpreted as an interval value.
+ (SQLSTATE 42804)
+
+
+
+
+
+ -209 (ECPG_DATE_FORMAT)
+
+ The host variable is of type date and the datum in
+ the database is of another type and contains a value that
+ cannot be interpreted as a date value.
+ (SQLSTATE 42804)
+
+
+
+
+
+ -210 (ECPG_TIMESTAMP_FORMAT)
+
+ The host variable is of type timestamp and the
+ datum in the database is of another type and contains a value
+ that cannot be interpreted as a timestamp value.
+ (SQLSTATE 42804)
+
+
+
+
-211 (ECPG_CONVERT_BOOL)
+
+
+
+ -216 (ECPG_ARRAY_INSERT)
+
+ The value could not be inserted into the array. (SQLSTATE
+ 42804)
+
+
+
+]]>
+
-220 (ECPG_NO_CONN)
+
+ -239 (ECPG_INFORMIX_DUPLICATE_KEY)
+
+ Duplicate key error, violation of unique constraint (Informix
+ compatibility mode). (SQLSTATE 23505)
+
+
+
+
-240 (ECPG_UNKNOWN_DESCRIPTOR)
+
+ -284 (ECPG_INFORMIX_SUBSELECT_NOT_ONE)
+
+ A result of the subquery is not single row (Informix
+ compatibility mode). (SQLSTATE 21000)
+
+
+
+
-400 (ECPG_PGSQL)
- 100 (ECPG_NOT_FOUND)
+ -403 (ECPG_DUPLICATE_KEY)
- This is a harmless condition indicating that the last command
- retrieved or processed zero rows, or that you are at the end of
- the cursor. (SQLSTATE 02000)
+ Duplicate key error, violation of unique constraint. (SQLSTATE
+ 23505)
+
+
+ -404 (ECPG_SUBSELECT_NOT_ONE)
+
+ A result for the subquery is not single row. (SQLSTATE 21000)
+
+
+
+
+
+
+
+ -600 (ECPG_WARNING_UNRECOGNIZED)
+
+ An unrecognized warning was received from the server.
+
+
+
+
+
+ -601 (ECPG_WARNING_QUERY_IGNORED)
+
+ Current transaction is aborted. Queries are ignored until the
+ end of the transaction block.
+
+
+
+]]>
+
+
+ -602 (ECPG_WARNING_UNKNOWN_PORTAL)
+
+ An invalid cursor name was specified. (SQLSTATE 34000)
+
+
+
+
+
+ -603 (ECPG_WARNING_IN_TRANSACTION)
+
+ Transaction is in progress. (SQLSTATE 25001)
+
+
+
+
+
+ -604 (ECPG_WARNING_NO_TRANSACTION)
+
+ There is no active (in-progress) transaction. (SQLSTATE 25P01)
+
+
+
+
+
+ -605 (ECPG_WARNING_PORTAL_EXISTS)
+
+ An existing cursor name was specified. (SQLSTATE 42P03)
+
+
+
+