Domain casting still not working right?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Domain casting still not working right?
Date: 2003-05-23 22:35:43
Message-ID: Pine.LNX.4.44.0305232137260.5719-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

This particular case arose during work on the information schema:

-- good

select cast(55::oid AS varchar);
varchar
---------
55
(1 row)

-- bad

create domain test as varchar;
CREATE DOMAIN
select cast(55::oid AS test);
ERROR: Cannot cast type oid to test

--
Peter Eisentraut peter_e(at)gmx(dot)net

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-05-23 22:37:41 Re: Plan B for log rotation support: borrow Apache code
Previous Message Peter Eisentraut 2003-05-23 22:34:37 Re: Suggestion GRANT ALTER, TRIGGER ON ALTER

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-05-24 04:10:52 plpq for dblink
Previous Message Bruce Momjian 2003-05-23 19:31:30 Re: Static snapshot data