Remove the useless and rather inconsistent return values of EncodeDateOnly,
Tom Lane <tgl@sss.pgh.pa.us>
Remove the useless and rather inconsistent return values of EncodeDateOnly, EncodeTimeOnly, EncodeDateTime, EncodeInterval. These don't have any good reason to fail, and their callers were mostly not checking anyway.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/datetime.c | modified | +9 −25 |
| src/backend/utils/adt/timestamp.c | modified | +2 −3 |
| src/include/utils/datetime.h | modified | +5 −5 |