Improve documentation of ParseDateTime(). Reorder tests to prevent
Tom Lane <tgl@sss.pgh.pa.us>
Improve documentation of ParseDateTime(). Reorder tests to prevent writing one more value into return arrays than will fit. This is potentially a stack smash, though I do not think it is a problem in current uses of the routine, since a failure return causes elog anyway.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/datetime.c | modified | +37 −22 |
| src/include/utils/datetime.h | modified | +2 −2 |