| От | Tom Lane |
|---|---|
| Тема | Re: to_char issue? |
| Дата | |
| Msg-id | 1284.1254151864@sss.pgh.pa.us обсуждение |
| Ответ на | Re: to_char issue? (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-bugs |
I wrote:
> Hmm ... it would be expected in the case of a timestamp, but seems
> wrong when the input is interval.
... although actually the documentation defines HH as "hour of day (01-12)"
so it seems that this is per docs; at least, if you wanted to have
intervals behave differently from timestamps then documenting it would
get much messier. If you consider an interval as being time since
midnight then it's not totally insane.
I also find by experiment that it's worked like this since
to_char(interval) was introduced in 7.2.
I'm kind of inclined to leave it as-is, unless someone can show that
Oracle behaves differently.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера