pgsql: Fix interval test, which was broken for floating-point timestamp
В списке pgsql-committers по дате отправления:
| От | Jeff Davis |
|---|---|
| Тема | pgsql: Fix interval test, which was broken for floating-point timestamp |
| Дата | |
| Msg-id | E1Whtmo-0003ov-1k@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
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. Branch ------ REL8_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/bd4c76a3c5d141462e149a130d0cbeca36e11e88 Modified Files -------------- src/test/regress/expected/interval.out | 11 +++++++---- src/test/regress/sql/interval.sql | 5 ++++- 2 files changed, 11 insertions(+), 5 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера