summaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-05-01 19:29:34 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-05-01 19:29:34 +0000
commit7c26416ffdf1ed336c811842c5bb0aa76a61c140 (patch)
treefe55aeadd5b9148b207a90f246b282f2926ea625 /src/backend/access/gist
parent6e7b2d846c678b59435e20851db921903a5be7db (diff)
When checking for datetime field overflow, we should allow a fractional-second
part that rounds up to exactly 1.0 second. The previous coding rejected input like "00:12:57.9999999999999999999999999999", with the exact number of nines needed to cause failure varying depending on float-timestamp option and possibly on platform. Obviously this should round up to the next integral second, if we don't have enough precision to distinguish the value from that. Per bug #4789 from Robert Kruus. In passing, fix a missed check for fractional seconds in one copy of the "is it greater than 24:00:00" code. Broken all the way back, so patch all the way back.
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions