Ok, i have understand.
Select from table works because of type date of column.
Thanks!
2012/12/10 Bartosz Dmytrak <bdmytrak(at)gmail(dot)com>
> hi,
> try SELECT to_char(null::date, 'DD.MM.YYYY')::text or SELECT
> to_char(null::timestamp, 'DD.MM.YYYY')::text
>
> should work.
> It is not possible to guess type of null without explicit cast.
>
> Regards,
> Bartek
>