]> granicus.if.org Git - postgresql/commit
Fix (hopefully for the last time) problems with datetime values displaying
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 9 Oct 2005 17:21:47 +0000 (17:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 9 Oct 2005 17:21:47 +0000 (17:21 +0000)
commit313ed1ed9498f977262e180a080c7748197ced5c
tree17780e929d9a0d710d84de261b27ac26e9a5adcf
parent7754f7634cbc837702428bbb40a0efbeec7a51d1
Fix (hopefully for the last time) problems with datetime values displaying
like '23:59:60' because of fractional-second roundoff problems.  Trying
to control this upstream of the actual display code was hopeless; the right
way is to explicitly round fractional seconds in the display code and then
refigure the results if the fraction rounds up to 1.  Per bug #1927.
contrib/btree_gist/btree_ts.c
src/backend/utils/adt/date.c
src/backend/utils/adt/datetime.c
src/backend/utils/adt/timestamp.c
src/include/utils/date.h
src/include/utils/timestamp.h
src/interfaces/ecpg/pgtypeslib/dt.h
src/interfaces/ecpg/pgtypeslib/dt_common.c
src/interfaces/ecpg/pgtypeslib/interval.c
src/interfaces/ecpg/pgtypeslib/timestamp.c