Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group