Newbie: execute function error!

From: "John GM" <gm(at)weri(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Newbie: execute function error!
Date: 2001-03-06 05:55:05
Message-ID: 981uer$1vu3$1@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I created a sample function:

CREATE FUNCTION concat_text (text, text) RETURNS text AS '
BEGIN
RETURN $1 || $2;
END; '
LANGUAGE 'plpgsql';

The creation was fine. But when I execute the function with : select
concat('a', 'b');

I get the error:

NOTICE: plpgsql: ERROR during compile of concat_text near line 1
"RROR: parse error at or near "

What did I do wrong?

Thanks!

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jens Hartwig 2001-03-06 07:11:48 Problems with RULE
Previous Message Grant 2001-03-06 05:13:21 Re: No Documentation for to_char(INTERVAL, mask)