Allow times of 24:00:00 to match rounding behavior:
Bruce Momjian <bruce@momjian.us>
Allow times of 24:00:00 to match rounding behavior: regression=# select '23:59:59.9'::time(0); time ---------- 24:00:00 (1 row) This is bad because: regression=# select '24:00:00'::time(0); ERROR: date/time field value out of range: "24:00:00" The last example now works.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/datatype.sgml | modified | +3 −3 |
| src/backend/utils/adt/datetime.c | modified | +10 −6 |
| src/backend/utils/adt/nabstime.c | modified | +9 −7 |
| src/interfaces/ecpg/pgtypeslib/dt_common.c | modified | +5 −2 |