aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-05-01 19:29:42 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-05-01 19:29:42 +0000
commit2a0f7d1b31b5b5d84488f18424406f980d43e535 (patch)
treedb2f3cc105665e0f2a0890f6a0c9a69cbb8a3776 /src/backend/access/gist/gist.c
parent9af91a527bd61673ef257642a315dad0765a807a (diff)
downloadpostgresql-2a0f7d1b31b5b5d84488f18424406f980d43e535.tar.gz
postgresql-2a0f7d1b31b5b5d84488f18424406f980d43e535.zip
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/gist.c')
0 files changed, 0 insertions, 0 deletions