pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: Roberto Mello <rmello@cc.usu.edu>
Cc: Mourad EL HADJ MIMOUNE <mimoune@ensma.fr>
Cc: pgsql-sql@postgresql.org
Subject: Re: SQL-Programmer tool and field%type support
Date: Tue, 09 Oct 2001 00:34:07 -0400
Message-ID: <21023.1002602047@sss.pgh.pa.us> (raw)
In-Reply-To: <web-144013@davinci.ethosmedia.com>
References: <web-144013@davinci.ethosmedia.com>

"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



view thread (4+ messages)

Message-ID: <21023.1002602047@sss.pgh.pa.us>
Permalink:  ../21023.1002602047@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21023.1002602047@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, josh@agliodbs.com, rmello@cc.usu.edu, mimoune@ensma.fr
  Subject: Re: SQL-Programmer tool and field%type support
  In-Reply-To: <21023.1002602047@sss.pgh.pa.us>

* 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