Re: help: now() + N is now failing!

Поиск
Список
Период
Сортировка
От Dmitry Tkach
Тема Re: help: now() + N is now failing!
Дата
Msg-id 3F26BCCE.7070008@openratings.com
обсуждение исходный текст
Ответ на Re: help: now() + N is now failing!  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Ответы Re: help: now() + N is now failing!  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-novice
>
>
>>Ok, granted that, but what's wrong with date_pli (now(), 2)?
>>
>>
>
>It's a similar issue. As a potential counter example, what about
>date_pli('foo', 2) or date_pli(inet '1.1.1.1', 2)? There's a cast
>from text->date and a cast inet->text. If you allow downcasts and
>arbitrary casts you can get some really odd behavior.
>
Well... this would be a two-step cast.. That was never allowed (was
it?), and I never argued that it should...

Dima

>
>
>
>



В списке pgsql-novice по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: help: now() + N is now failing!
Следующее
От: Robert Treat
Дата:
Сообщение: Re: switch statement in plpgsql