Re: cannot cast type boolean to text?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: cannot cast type boolean to text?
Дата
Msg-id 16941.1181846325@sss.pgh.pa.us
обсуждение исходный текст
Ответ на cannot cast type boolean to text?  (Brian Hurt <bhurt@janestcapital.com>)
Ответы Re: cannot cast type boolean to text?  ("Shoaib Mir" <shoaibmir@gmail.com>)
Список pgsql-novice
Brian Hurt <bhurt@janestcapital.com> writes:
>     SELECT true :: text;
> ERROR:  cannot cast type boolean to text

> I was wondering why this is so.

Because there's no pg_cast entry for this conversion.

There will be one in 8.3, but for older releases make your own with
CREATE CAST.

            regards, tom lane

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

Предыдущее
От: Brian Hurt
Дата:
Сообщение: cannot cast type boolean to text?
Следующее
От: "Shoaib Mir"
Дата:
Сообщение: Re: cannot cast type boolean to text?