Re: function parse error - Mailing list pgsql-novice

From Michael Fuhr
Subject Re: function parse error
Date
Msg-id 20041108040522.GA29445@winnie.fuhr.org
Whole thread Raw
In response to function parse error  ("Harry Stangel" <hstangel@speakeasy.net>)
List 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/

pgsql-novice by date:

Previous
From:
Date:
Subject: FW: Pgsql install
Next
From: Tom Lane
Date:
Subject: Re: FW: Pgsql install