Re: Casting help

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Mitch Vincent <mitch(at)venux(dot)net>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Casting help
Date: 2001-02-12 19:35:35
Message-ID: Pine.LNX.4.30.0102122034420.1100-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mitch Vincent writes:

> if I try to cast minority to varchar (or anything else for that matter) I
> get
>
> ERROR: Cannot cast type 'bool' to 'varchar'

Try: CASE WHEN minority THEN 'value of true' ELSE 'value if false' END

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Brice Ruth 2001-02-12 19:37:10 (Update) Implicit smallint to boolean conversion?
Previous Message Lamar Owen 2001-02-12 19:33:09 Re: 7.1 installation problem