aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonb_gin.c
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2014-05-06 19:35:24 -0700
committerJeff Davis <jdavis@postgresql.org>2014-05-06 19:53:59 -0700
commit348aa75a678069569923c501206d5a1ca03654e3 (patch)
tree61589c4a2a13fce9adfe44ed77eea711995976c4 /src/backend/utils/adt/jsonb_gin.c
parent2c22afaa4e29cbd773bae3f043a941f82ff30e2d (diff)
downloadpostgresql-348aa75a678069569923c501206d5a1ca03654e3.tar.gz
postgresql-348aa75a678069569923c501206d5a1ca03654e3.zip
Fix interval test, which was broken for floating-point timestamps.
Commit 4318daecc959886d001a6e79c6ea853e8b1dfb4b introduced a test that couldn't be made consistent between integer and floating-point timestamps. It was designed to test the longest possible interval output length, so removing four zeros from the number of hours, as this patch does, is not ideal. But the test still has some utility for its original purpose, and there aren't a lot of other good options. Noah Misch suggested a different approach where we test that the output either matches what we expect from integer timestamps or what we expect from floating-point timestamps. That seemed to obscure an otherwise simple test, however. Reviewed by Tom Lane and Noah Misch.
Diffstat (limited to 'src/backend/utils/adt/jsonb_gin.c')
0 files changed, 0 insertions, 0 deletions