diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-09 17:21:47 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-09 17:21:47 +0000 |
commit | 313ed1ed9498f977262e180a080c7748197ced5c (patch) | |
tree | 17780e929d9a0d710d84de261b27ac26e9a5adcf /contrib/btree_gist | |
parent | 7754f7634cbc837702428bbb40a0efbeec7a51d1 (diff) | |
download | postgresql-313ed1ed9498f977262e180a080c7748197ced5c.tar.gz postgresql-313ed1ed9498f977262e180a080c7748197ced5c.zip |
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.
Diffstat (limited to 'contrib/btree_gist')
-rw-r--r-- | contrib/btree_gist/btree_ts.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/contrib/btree_gist/btree_ts.c b/contrib/btree_gist/btree_ts.c index 6c9481b4b2e..119c45093eb 100644 --- a/contrib/btree_gist/btree_ts.c +++ b/contrib/btree_gist/btree_ts.c @@ -122,9 +122,7 @@ tstz_to_ts_gmt(Timestamp *gmt, TimestampTz *ts) *gmt -= (tz * INT64CONST(1000000)); #else *gmt -= tz; - *gmt = JROUND(*gmt); #endif - } return gmt; } |