aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeFunctionscan.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-07-06 20:29:23 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-07-06 20:29:23 +0000
commit47386fed461d7726743de39efa2da042eca22575 (patch)
treed9d4cf1266d36f0d60e53a7406710974651a4b70 /src/backend/executor/nodeFunctionscan.c
parent44886bd878a2098d7bef6413e669d4ec59b17f71 (diff)
downloadpostgresql-47386fed461d7726743de39efa2da042eca22575.tar.gz
postgresql-47386fed461d7726743de39efa2da042eca22575.zip
Use floor() not rint() when reducing precision of fractional seconds in
timestamp_trunc, timestamptz_trunc, and interval_trunc(). This change only affects the float-datetime case; the integer-datetime case already behaved like truncation instead of rounding. Per gripe from Mario Splivalo. This is a pre-existing issue but I'm choosing not to backpatch, because it's such a corner case and there have not been prior complaints. The issue is largely moot anyway given the trend towards integer datetimes.
Diffstat (limited to 'src/backend/executor/nodeFunctionscan.c')
0 files changed, 0 insertions, 0 deletions