Skip site navigation (1) Skip section navigation (2)

Re: create function

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Pam Withnall <Pamw(at)zoom(dot)com(dot)au>
Cc: "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: create function
Date: 2000-11-02 02:53:25
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
What version are you using?  On a 7.0.2 freebsd machine,
I cut and paste the below function and query and had
no problems.

Stephan Szabo

On Thu, 2 Nov 2000, Pam Withnall wrote:

> I have installed plpgsql procedural language ok,
> I could not get any functions to work. 
> I tried the most simple function as documented:
> CREATE FUNCTION sptest3 (int4) RETURNS int4 AS
> 		RETURN $1+1;
> 	END;' LANGUAGE 'plpgsql';
> When i call the function from sql
> SELECT sptest3(4) AS x;
> I get the error:
> "NOTICE:  plpgsql: ERROR during compile of sptest3 near line 1
> "RROR:  parse error at or near "
> can anybody help?

In response to

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2000-11-02 03:26:50
Subject: Re: Re: [GENERAL] 7.0 vs. 7.1 (was: latest version?)
Previous:From: Pam WithnallDate: 2000-11-02 02:46:08
Subject: create function

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group