PostgreSQL Reference Manual  Volume 2  Programming Guide by The PostgreSQL Global Development Group Paperback (6"x9"), 408 pages ISBN 0954612035 RRP £19.95 ($34.95) Sales of this book support the PostgreSQL project! Get a printed copy>>> 
3.9.3 Additional constants
Note that all constants here describe errors and all of them are defined to represent negative values. In the descriptions of the different constants you can also find the value that the constants represent in the current implementation. However you should not rely on this number. You can however rely on the fact all of them are defined to represent negative values.
ECPG_INFORMIX_NUM_OVERFLOW
 Functions return this value if an overflow occurred in a calculation. Internally it is defined to 1200 (the Informix definition).
ECPG_INFORMIX_NUM_UNDERFLOW
 Functions return this value if an underflow occurred in a calculation. Internally it is defined to 1201 (the Informix definition).
ECPG_INFORMIX_DIVIDE_ZERO
 Functions return this value if an attempt to divide by zero is observed. Internally it is defined to 1202 (the Informix definition).
ECPG_INFORMIX_BAD_YEAR
 Functions return this value if a bad value for a year was found while parsing a date. Internally it is defined to 1204 (the Informix definition).
ECPG_INFORMIX_BAD_MONTH
 Functions return this value if a bad value for a month was found while parsing a date. Internally it is defined to 1205 (the Informix definition).
ECPG_INFORMIX_BAD_DAY
 Functions return this value if a bad value for a day was found while parsing a date. Internally it is defined to 1206 (the Informix definition).
ECPG_INFORMIX_ENOSHORTDATE
 Functions return this value if a parsing routine needs a short date representation but did not get the date string in the right length. Internally it is defined to 1209 (the Informix definition).
ECPG_INFORMIX_DATE_CONVERT
 Functions return this value if Internally it is defined to 1210 (the Informix definition).
ECPG_INFORMIX_OUT_OF_MEMORY
 Functions return this value if Internally it is defined to 1211 (the Informix definition).
ECPG_INFORMIX_ENOTDMY

Functions return this value if a parsing routine was supposed to get a
format mask (like
mmddyy
) but not all fields were listed correctly. Internally it is defined to 1212 (the Informix definition). ECPG_INFORMIX_BAD_NUMERIC
 Functions return this value either if a parsing routine cannot parse the textual representation for a numeric value because it contains errors or if a routine cannot complete a calculation involving numeric variables because at least one of the numeric variables is invalid. Internally it is defined to 1213 (the Informix definition).
ECPG_INFORMIX_BAD_EXPONENT
 Functions return this value if Internally it is defined to 1216 (the Informix definition).
ECPG_INFORMIX_BAD_DATE
 Functions return this value if Internally it is defined to 1218 (the Informix definition).
ECPG_INFORMIX_EXTRA_CHARS
 Functions return this value if Internally it is defined to 1264 (the Informix definition).
ISBN 0954612035  PostgreSQL Reference Manual  Volume 2  Programming Guide  See the print edition 