| From: | "Josh Berkus" <josh(at)agliodbs(dot)com> |
|---|---|
| To: | Roberto Mello <rmello(at)cc(dot)usu(dot)edu>, Mourad EL HADJ MIMOUNE <mimoune(at)ensma(dot)fr> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: SQL-Programmer tool and field%type support |
| Date: | 2001-10-08 23:08:05 |
| Message-ID: | web-144013@davinci.ethosmedia.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Mourad,
> > I have an other question about the use of %type and alias in
> PL/SQL. So the
> > excution of functions containing varibales of type
> maytable.field1%type
> > prompts parser errors.
> > error on the creation of the function :
> > create function test (int) returns maytable.field1%type as' ...
What Roberto is saying is that the declaration:
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.
-Josh
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Saurabh Mittal | 2001-10-09 03:45:42 | ROUND function ?? |
| Previous Message | Papp Gyozo | 2001-10-08 22:14:43 | Re: PEAR Problem |