Re: text cast to bool bug - Mailing list pgsql-bugs

From Pavel Stehule
Subject Re: text cast to bool bug
Date
Msg-id 162867791003180337g86e961byd293ffae3c313410@mail.gmail.com
Whole thread Raw
In response to text cast to bool bug  (Laczi József <laczi.jozsef@ritek.hu>)
Responses Re: text cast to bool bug  (CaT <cat@zip.com.au>)
List pgsql-bugs
Hello

It works on my server. Do you have a some specific configuration?

postgres=3D# select ('true'::text)::bool;
 bool
------
 t
(1 row)

I am checked 8.3, 8.4, 9.0.

Regards
Pavel Stehule

2010/3/18 Laczi J=C3=B3zsef <laczi.jozsef@ritek.hu>:
> I think this is a funny bug:
>
> select ('TRUE'::TEXT)::BOOL;
> bool
> ------
> f
>
> but:
>
> select ('TRUE'::varchar(4))::BOOL;
> bool
> ------
> t
> or
>
> select ('true'::TEXT)::BOOL;
> bool
> ------
> t
>
>
> My postgresql version:
> PostgreSQL 8.3.4
>
>
> Laczi J=C3=B3zsef
>
>
>
> --
> Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs
>

pgsql-bugs by date:

Previous
From: Laczi József
Date:
Subject: text cast to bool bug
Next
From: CaT
Date:
Subject: Re: text cast to bool bug