Re: text cast to bool bug

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: text cast to bool bug
Дата
Msg-id 10329.1268922353@sss.pgh.pa.us
обсуждение исходный текст
Ответ на text cast to bool bug  (Laczi József <laczi.jozsef@ritek.hu>)
Список pgsql-bugs
Laczi József <laczi.jozsef@ritek.hu> writes:
> I think this is a funny bug:
> select ('TRUE'::TEXT)::BOOL;
>  bool
> ------
>  f

Works here:

regression=# select ('TRUE'::TEXT)::BOOL;bool
------t
(1 row)

(I'm checking 8.3.10, but that code hasn't changed in a long time.)

Maybe you have created a custom text-to-bool cast that is catching this
operation, and the cast function is case-sensitive?
        regards, tom lane


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: BUG #5377: group by problem
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5377: group by problem