Re: Casting to varchar

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Scott Ribe <scott_ribe(at)killerbytes(dot)com>
Cc: Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Casting to varchar
Date: 2007-05-04 20:46:37
Message-ID: 20070504204637.GC26685@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scott Ribe wrote:
> Just discovered (the hard way) that casting a boolean column ::varchar
> doesn't work. I assume I can add a function somewhere that will define a
> default cast for this?

Sure, see CREATE CAST.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2007-05-04 20:48:41 Re: Casting to varchar
Previous Message Raymond O'Donnell 2007-05-04 20:42:07 Re: Casting to varchar