From: Josh Berkus <josh@agliodbs.com>
To: Roberto Mello <rmello@cc.usu.edu>
To: Mourad EL HADJ MIMOUNE <mimoune@ensma.fr>
Cc: pgsql-sql@postgresql.org
Subject: Re: SQL-Programmer tool and field%type support
Date: Mon, 08 Oct 2001 16:08:05 -0700
Message-ID: <web-144013@davinci.ethosmedia.com> (raw)
In-Reply-To: <20011008120934.A4030@cc.usu.edu>
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@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, rmello@cc.usu.edu, mimoune@ensma.fr
Subject: Re: SQL-Programmer tool and field%type support
In-Reply-To: <web-144013@davinci.ethosmedia.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox