| От | Tom Lane |
|---|---|
| Тема | Re: timestamp('01/12/01') doesn't work in 7.2 beta4 |
| Дата | |
| Msg-id | 512.1008284804@sss.pgh.pa.us обсуждение |
| Ответ на | timestamp('01/12/01') doesn't work in 7.2 beta4 ("Henshall, Stuart - WCP" <SHenshall@westcountrypublications.co.uk>) |
| Список | pgsql-general |
"Henshall, Stuart - WCP" <SHenshall@westcountrypublications.co.uk> writes:
> The timestamp('25/12/01') would return a timestamp in 7.1, how ever
> in 7.2 beta 4 select "timestamp"('25/12/01') is needed, although select
> timestamptz('25/12/01') works. Is this change intentional and if so is there
> a way of getting the old functionality to work?
I'm afraid you're stuck. TIMESTAMP(n) is now a type name, per SQL92
standard, and getting the parser to treat TIMESTAMP(somethingotherthan
anintegerconstant) as a function call instead does not seem real
practical.
The only bright spot is that as we get closer to full SQL92 compliance,
these sorts of gotchas should become less frequent. But this one is
surely not the last.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера