Re: text(bool) not defined - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: text(bool) not defined
Date
Msg-id Pine.LNX.4.30.0110100034440.672-100000@peter.localdomain
Whole thread Raw
In response to text(bool) not defined  (Dave Blasby <dblasby@refractions.net>)
List pgsql-hackers
Dave Blasby writes:

> I've noticed that text(bool) isnt a defined function (nor does
> 'true'::bool::text work).

case when value then 'answer if true' else 'answer if false' end

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



pgsql-hackers by date:

Previous
From: Dave Blasby
Date:
Subject: text(bool) not defined
Next
From: Peter Eisentraut
Date:
Subject: EXTRACT broken