| От | Tom Lane |
|---|---|
| Тема | Re: Support TZ format code in to_timestamp() |
| Дата | |
| Msg-id | 160136.1706112793@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Support TZ format code in to_timestamp() (Aleksander Alekseev <aleksander@timescale.com>) |
| Список | pgsql-hackers |
Aleksander Alekseev <aleksander@timescale.com> writes:
> +SELECT to_timestamp('2011-12-18 11:38 JUNK', 'YYYY-MM-DD HH12:MI TZ'); -- error
> +ERROR: invalid value "JUNK" for "TZ"
> +DETAIL: Time zone abbreviation is not recognized.
> +SELECT to_timestamp('2011-12-18 11:38 ...', 'YYYY-MM-DD HH12:MI TZ'); -- error
> +ERROR: invalid value ".." for "TZ"
> Shouldn't the second error display the full value "..." (three dots)
> similarly to the previous one?
That's coming from the pre-existing OF code, which is looking for
a integer of at most two digits. I'm not especially inclined to
mess with that, and even if I were I'd think it should be a separate
patch.
> Also I think we need at least one
> negative test for OF.
OK.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера