Re: function parse error

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Harry Stangel <hstangel(at)speakeasy(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: function parse error
Date: 2004-11-08 04:05:22
Message-ID: 20041108040522.GA29445@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Fri, Nov 05, 2004 at 07:33:51AM -0800, Harry Stangel wrote:

> CREATE OR REPLACE FUNCTION trivial() RETURNS TEXT AS '
> DEFINE
> x TEXT;

It's DECLARE, not DEFINE.

http://www.postgresql.org/docs/7.4/static/plpgsql-structure.html

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2004-11-08 04:12:48 Re: FW: Pgsql install
Previous Message Tom Lane 2004-11-08 02:08:11 Re: function to update different tables