DOMAIN NEED CAST ?

From: ivan <iv(at)psycho(dot)pl>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: DOMAIN NEED CAST ?
Date: 2003-08-17 16:34:36
Message-ID: Pine.LNX.4.56.0308171803370.10497@rex.anfa.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Why when i create domain like :

CREATE DOMAIN alias_to_int AS INT;

and then function like :

CREATE FUNCTION func() RETURNS alist_to_int AS ' select 2::int; ' LANGUAGE
SQL;

and pg can not convert int to aliast_to_int, so i need to create cast for
all this same types ?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephan Szabo 2003-08-17 16:47:10 Re: Question with hashed IN
Previous Message Tom Lane 2003-08-17 15:54:03 Re: Question with hashed IN