Re: SQL-Programmer tool and field%type support - Mailing list pgsql-sql

From Tom Lane
Subject Re: SQL-Programmer tool and field%type support
Date
Msg-id 21023.1002602047@sss.pgh.pa.us
Whole thread Raw
In response to Re: SQL-Programmer tool and field%type support  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
"Josh Berkus" <josh@agliodbs.com> writes:
> DECLARE
> v_field1 mytable.field1%type
> is supported internal to a PL/pgSQL function, but
> CREATE FUNCTION test1(int) RETURNS mytable.filed1%type 
> is not.  This is because the %type declaration is supported in PL/pgSQL,
> but not in Postgres SQL.

It does work in 7.2devel, however ...
        regards, tom lane


pgsql-sql by date:

Previous
From: "Saurabh Mittal"
Date:
Subject: ROUND function ??
Next
From: Tom Lane
Date:
Subject: Re: ROUND function ??