aboutsummaryrefslogtreecommitdiff
path: root/contrib/btree_gist/btree_ts.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-10-09 17:21:47 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-10-09 17:21:47 +0000
commit313ed1ed9498f977262e180a080c7748197ced5c (patch)
tree17780e929d9a0d710d84de261b27ac26e9a5adcf /contrib/btree_gist/btree_ts.c
parent7754f7634cbc837702428bbb40a0efbeec7a51d1 (diff)
downloadpostgresql-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/btree_ts.c')
-rw-r--r--contrib/btree_gist/btree_ts.c2
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;
}