Repair array subscript overrun identified by Yichen Xie. Reduce the

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

Commit: 23b8a0ce61c0fac72c9b40acb875bb0ab0a5b915
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-01-29T01:08:42Z
Releases: 7.4.1
Repair array subscript overrun identified by Yichen Xie.  Reduce the
value of MAX_TIME_PRECISION in floating-point-timestamp-storage case
from 13 to 10, which is as much as time_out is actually willing to print.
(The alternative of increasing the number of digits we are willing to
print looks risky; we might find ourselves printing roundoff garbage.)

Files

PathChange+/−
doc/src/sgml/datatype.sgml modified +9 −4
src/backend/utils/adt/date.c modified +10 −5
src/backend/utils/adt/datetime.c modified +35 −63
src/include/utils/date.h modified +2 −2