Re: 'true'::TEXT::BOOLEAN

Поиск
Список
Период
Сортировка
От Markus Bertheau ☭
Тема Re: 'true'::TEXT::BOOLEAN
Дата
Msg-id 1117800238.9816.26.camel@dicaprio.akademie1.de
обсуждение исходный текст
Ответ на Re: 'true'::TEXT::BOOLEAN  (Achilleus Mantzios <achill@matrix.gatewaynet.com>)
Список pgsql-sql
В Птн, 03/06/2005 в 14:45 +0300, Achilleus Mantzios пишет:

> Then use the 
> case when ... then ... when ... then ... else ... end
> construct, e.g.
> case when mytext='true' then 't'::boolean else 'f'::boolean end

Because I don't want to reimplement postgres' boolean parsing.

> Hmm, why dont you leave it as 'true' or 'false' without any castings.

Because then pg doesn't find the function because it looks for one with
a text argument.

Markus

-- 
Markus Bertheau ☭ <twanger@bluetwanger.de>



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

Предыдущее
От: Achilleus Mantzios
Дата:
Сообщение: Re: 'true'::TEXT::BOOLEAN
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: 'true'::TEXT::BOOLEAN