aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/commit_ts.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-10-20 11:06:24 -0700
committerTom Lane <tgl@sss.pgh.pa.us>2015-10-20 11:07:05 -0700
commit5fb20a5ba6ce963ad529224ff5359aa1731c4068 (patch)
tree937c1a5a9d8c062192524f610ea72e084c5bb486 /src/backend/access/transam/commit_ts.c
parent2bfd2fe58db88abf86a920fe532b80cf2ea84a7f (diff)
downloadpostgresql-5fb20a5ba6ce963ad529224ff5359aa1731c4068.tar.gz
postgresql-5fb20a5ba6ce963ad529224ff5359aa1731c4068.zip
Fix incorrect translation of minus-infinity datetimes for json/jsonb.
Commit bda76c1c8cfb1d11751ba6be88f0242850481733 caused both plus and minus infinity to be rendered as "infinity", which is not only wrong but inconsistent with the pre-9.4 behavior of to_json(). Fix that by duplicating the coding in date_out/timestamp_out/timestamptz_out more closely. Per bug #13687 from Stepan Perlov. Back-patch to 9.4, like the previous commit. In passing, also re-pgindent json.c, since it had gotten a bit messed up by recent patches (and I was already annoyed by indentation-related problems in back-patching this fix ...)
Diffstat (limited to 'src/backend/access/transam/commit_ts.c')
0 files changed, 0 insertions, 0 deletions