Re: Cast boolean to text

From: "Shoaib Mir" <shoaibmir(at)gmail(dot)com>
To: "Willy-Bas Loos" <willybas(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Cast boolean to text
Date: 2006-12-07 09:44:30
Message-ID: bf54be870612070144g1d9d6a2ct6b4ee7c9ec4eeeba@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)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".
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-12-07 09:50:09 Re: Internal function call from C-language function
Previous Message Henrik Zagerholm 2006-12-07 09:35:06 pg_dump/pg_Restore 8.1.5 db -> 8.2 tsearch2 problem