simple function syntax - Mailing list pgsql-general

From Culley Harrelson
Subject simple function syntax
Date
Msg-id 20010126055556.35043.qmail@web9603.mail.yahoo.com
Whole thread Raw
Responses Re: simple function syntax  ("Robert B. Easter" <reaster@comptechnews.com>)
List pgsql-general
OK trying to write my first function and its blowing
up at compile.  What's wrong with this:

CREATE FUNCTION test_function(int4) RETURNS int4 AS '
    DECLARE
        test ALIAS FOR $1;
    BEGIN
        RETURN test;
    END;
' LANGUAGE 'plpgsql';

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

pgsql-general by date:

Previous
From: Steve Leibel
Date:
Subject: Re: Connection pooling
Next
From: "Robert B. Easter"
Date:
Subject: Re: simple function syntax