Re: Cast boolean to text

Поиск
Список
Период
Сортировка
От Shoaib Mir
Тема Re: Cast boolean to text
Дата
Msg-id bf54be870612070144g1d9d6a2ct6b4ee7c9ec4eeeba@mail.gmail.com
обсуждение исходный текст
Ответ на Cast boolean to text  ("Willy-Bas Loos" <willybas@gmail.com>)
Список pgsql-general
You can create a custome cast for this purpose that can convert bool to text...
 
Regards,
Shoaib

 
On 12/7/06, Willy-Bas Loos <willybas@gmail.com> wrote:
Hi,

I've noticed that postgresql  8.1.0 can cast a boolean to text, but version 8.1.5 CAN'T.
Is this a bug or a feature?

as proof, try to run this query:
select 't'::bool::text

On version 8.1.5 one will recieve the error message "can't convert boolean to text".

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