Re: How to check whether a data type can be cast to another

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Kareem Sedki <isiscreation(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Merlin Moncure <mmoncure(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: How to check whether a data type can be cast to another
Date: 2009-10-23 15:32:38
Message-ID: 20091023153238.GE355@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Kareem Sedki escribió:
> Thank you Merlin and Tom. I appreciate your answers.
>
> I have tried to follow that approach before I go this way. So, I checked
> the appendix of the documentation for error conditions. Searching for
> cast-related conditions, I found INVALID_CHARACTER_VALUE_FOR_CAST. Would
> that be the exception to catch? It doesn't sound right.

TIAS -- http://www.fetter.org/tias.html

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2009-10-23 15:38:59 Re: How to check whether a data type can be cast to another
Previous Message Alvaro Herrera 2009-10-23 15:29:21 Re: pg 8.4 (Auto)-vacuumlo