| От | Tom Lane |
|---|---|
| Тема | Re: to_date() and to_timestamp() with negative years |
| Дата | |
| Msg-id | 265331.1635978234@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: to_date() and to_timestamp() with negative years (Adrian Klaver <adrian.klaver@aklaver.com>) |
| Ответы |
Re: to_date() and to_timestamp() with negative years
|
| Список | pgsql-general |
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> Haven't had time to work through what the above is actually doing.
I think the first two are explained by 489c9c340:
Also, arrange for the combination of a negative year and an
explicit "BC" marker to cancel out and produce AD. This is how
the negative-century case works, so it seems sane to do likewise.
The last two look like a parsing issue: with no field separator
(nope, the space doesn't count), the code is taking the dash
as a field separator.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера