CAST ON NEW TYPE

From: <pejac(at)altern(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: CAST ON NEW TYPE
Date: 2000-12-06 15:02:52
Message-ID: 200012061503.eB6F3wt25942@mail.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I create a new type that work well, but when
i use the cast function on my new type like this i have an error:
(other fucntion like substring don't work too )

select bare_code::text from ean_article;
ERROR: Cannot cast type 'ean13' to 'text'

What can i do in my new type in order to use cast ???

Best regards,

PEJAC Pascal

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-12-06 15:34:04 Re: CAST ON NEW TYPE
Previous Message Camm Maguire 2000-12-06 14:43:45 Re: Foreign key references to non-primary key columns