| От | Tom Lane |
|---|---|
| Тема | Re: BUG #2056: to_char no long takes time as input? |
| Дата | |
| Msg-id | 28941.1132505987@sss.pgh.pa.us обсуждение |
| Ответ на | BUG #2056: to_char no long takes time as input? ("Nick Addington" <adding@math.wisc.edu>) |
| Ответы |
Re: BUG #2056: to_char no long takes time as input?
|
| Список | pgsql-bugs |
"Nick Addington" <adding@math.wisc.edu> writes:
> The following code works in 8.0.4 but fails in 8.1.0:
> select to_char('1:00 pm'::time,'HH:MM AM');
I'm inclined to think that disallowing AM/PM for intervals was a mistake
--- if we allow both HH and HH24 (which we do) then the various flavors
of AM/PM seem reasonable to allow as well.
Bruce, did you have a specific rationale for that?
I notice the code now specifically forces HH to be treated as HH24 in
the interval case, which was not so before 8.1; we would need to revert
that change as well to continue supporting TIME cases reasonably.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера