postgresql_16:5.3.6.7 errno Values of pgtypeslib
PostgreSQL 16 > Client Interfaces > ECPG — Embedded SQL in C > pgtypes Library > errno Values of pgtypeslib
PGTYPES_NUM_BAD_NUMERIC An argument should contain a numeric variable (or point to a numeric variable) but in fact its in-memory representation was invalid. PGTYPES_NUM_OVERFLOW An overflow occurred. Since the numeric type can deal with almost arbitrary precision, converting a numeric variable into other types might cause overflow. PGTYPES_NUM_UNDERFLOW An underflow occurred. Since the numeric type can deal with almost arbitrary precision, converting a numeric variable into other types might cause underflow. PGTYPES_NUM_DIVIDE_ZERO A division by zero has been attempted. PGTYPES_DATE_BAD_DATE An invalid date string was passed to the PGTYPESdate_from_asc function. PGTYPES_DATE_ERR_EARGS Invalid arguments were passed to the PGTYPESdate_defmt_asc function. PGTYPES_DATE_ERR_ENOSHORTDATE An invalid token in the input string was found by the PGTYPESdate_defmt_asc function. PGTYPES_INTVL_BAD_INTERVAL An invalid interval string was passed to the PGTYPESinterval_from_asc function, or an invalid interval value was passed to the PGTYPESinterval_to_asc function. PGTYPES_DATE_ERR_ENOTDMY There was a mismatch in the day/month/year assignment in the PGTYPESdate_defmt_asc function. PGTYPES_DATE_BAD_DAY An invalid day of the month value was found by the PGTYPESdate_defmt_asc function. PGTYPES_DATE_BAD_MONTH An invalid month value was found by the PGTYPESdate_defmt_asc function. PGTYPES_TS_BAD_TIMESTAMP An invalid timestamp string pass passed to the PGTYPEStimestamp_from_asc function, or an invalid timestamp value was passed to the PGTYPEStimestamp_to_asc function. PGTYPES_TS_ERR_EINFTIME An infinite timestamp value was encountered in a context that cannot handle it.