pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John GM <gm@weri.com>
To: pgsql-sql@postgresql.org
Subject: Newbie: execute function error!
Date: Tue, 6 Mar 2001 00:55:05 -0500
Message-ID: <981uer$1vu3$1@news.tht.net> (raw)

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!





view thread (2+ messages)  latest in thread

Message-ID: <981uer$1vu3$1@news.tht.net>
Permalink:  ../981uer$1vu3$1@news.tht.net/
Also on:    postgresql.org/message-id/981uer$1vu3$1@news.tht.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: gm@weri.com
  Subject: Re: Newbie: execute function error!
  In-Reply-To: <981uer$1vu3$1@news.tht.net>
  References: <981uer$1vu3$1@news.tht.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox