From: | Joel Burton <jburton(at)scw(dot)org> |
---|---|
To: | Kevin Willems <kdwillems(at)hotmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Trouble with PL/pgSQL |
Date: | 2001-04-08 07:08:44 |
Message-ID: | Pine.LNX.4.21.0104080307450.13233-100000@olympus.scw.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, 3 Apr 2001, Kevin Willems wrote:
> I wrote the following test function:
>
> CREATE FUNCTION tester(text)
> RETURNS text
> AS 'DECLARE
> str text;
> BEGIN
> str := upper($1);
> RETURN str;
> END;'
> LANGUAGE'plpgsql'
>
> This runs OK. However, when I go to use it as follows:
>
> SELECT tester('sometext');
>
> I get the error:
>
> NOTICE: plpgsql: ERROR during compile of tester near line 1
> "RROR: parse error at or near "
If this is the actual function you used, then you need a space between
LANGUAGE and 'plpgsql';
--
Joel Burton <jburton(at)scw(dot)org>
Director of Information Systems, Support Center of Washington
From | Date | Subject | |
---|---|---|---|
Next Message | Oliver Elphick | 2001-04-08 07:09:47 | Re: speed on Postgresql compared to Mysql |
Previous Message | Eric G. Miller | 2001-04-08 07:05:13 | Re: Question about SELECT FOR UPDATE in transaction, isolation level |