Re: a little doubr about domains and pl/python

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Walter Cruz" <walter(dot)php(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: a little doubr about domains and pl/python
Date: 2006-09-29 17:32:44
Message-ID: 17877.1159551164@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Walter Cruz" <walter(dot)php(at)gmail(dot)com> writes:
> CREATE CAST (integer AS romano) WITH FUNCTION to_roman(integer);

> What's wrong?

Domains aren't supported as cast source/targets at the moment; I don't
think the system is finding your cast specification at all, but is
instead doing this as 5::text::romano which of course fails. See past
discussions about the subtleties of trying to fix this.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Erik Jones 2006-09-29 17:37:30 Re: [GENERAL] Array assignment behavior (was Re: Stored procedure
Previous Message Tom Lane 2006-09-29 17:24:15 Re: Nulls, arrays, records, IS NULL, IS DISTINCT FROM