"Walter Cruz" <[EMAIL PROTECTED]> 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::rom
Hi all. I'm playing with pl/python AND i'm with a doubt.
I wanna create a domain to roman numerals.
I have made:
CREATE OR REPLACE FUNCTION valid_roman(text)
RETURNS BOOLEAN
IMMUTABLE
LANGUAGE plpythonu AS
$$
from roman9 import fromRoman
roman = args[0]
try:
r = fromRoman(roman)
return 'tr