Improve documentation of ParseDateTime(). Reorder tests to prevent

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 630684d3a130bb9381e5256b24d248d6a751d59f
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-08-05T18:30:21Z
Releases: 7.4.1
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

PathChange+/−
src/backend/utils/adt/datetime.c modified +37 −22
src/include/utils/datetime.h modified +2 −2