Schemas not available for pl/pgsql %TYPE.... - Mailing list pgsql-bugs

From Sean Chittenden
Subject Schemas not available for pl/pgsql %TYPE....
Date
Msg-id 20020904215317.GK59269@ninja1.internal
Whole thread Raw
Responses Re: Schemas not available for pl/pgsql %TYPE....
List pgsql-bugs
Call me crazy, but shouldn't the following work?  :~|


CREATE FUNCTION t() RETURNS TEXT AS '
DECLARE
    col_name pg_catalog.pg_attribute.attname%TYPE;
BEGIN
    col_name :=3D ''uga'';
    RETURN col_name;
END;
' LANGUAGE 'plpgsql';
CREATE FUNCTION


SELECT t();
WARNING:  plpgsql: ERROR during compile of t near line 2
ERROR:  Invalid type name 'pg_catalog.pg_attribute.attname % TYPE'


-sc

--=20
Sean Chittenden

pgsql-bugs by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Bug #757: ODBC Doesn works
Next
From: Tom Lane
Date:
Subject: Re: Schemas not available for pl/pgsql %TYPE....