tm2timestamp should return -1, not elog, on overflow. (In the backend
Tom Lane <tgl@sss.pgh.pa.us>
tm2timestamp should return -1, not elog, on overflow. (In the backend this is merely an API inconsistency, but in ecpg it's fatal.) Also, fix misconceived overflow test in HAVE_INT64_TIMESTAMP case.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/timestamp.c | modified | +10 −5 |
| src/interfaces/ecpg/pgtypeslib/timestamp.c | modified | +9 −4 |