Re: function to_char(unknown, unknown) is not unique

Поиск
Список
Период
Сортировка
От Bartosz Dmytrak
Тема Re: function to_char(unknown, unknown) is not unique
Дата
Msg-id CAD8_UcZn0b0Y_AO0s-3XzrcokonPWbzwkAc12KeYvm56ioSJMQ@mail.gmail.com
обсуждение исходный текст
Ответ на function to_char(unknown, unknown) is not unique  (Alex Bozhenko <alexbozhenko@gmail.com>)
Ответы Re: function to_char(unknown, unknown) is not unique
Список pgsql-novice
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

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

Предыдущее
От: Alex Bozhenko
Дата:
Сообщение: function to_char(unknown, unknown) is not unique
Следующее
От: Alex Bozhenko
Дата:
Сообщение: Re: function to_char(unknown, unknown) is not unique