Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f27IG2x63339 for ; Wed, 7 Mar 2001 13:16:02 -0500 (EST) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f266UGx14141 for ; Tue, 6 Mar 2001 01:30:16 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f26611C65489 for pgsql-sql@postgresql.org; Tue, 6 Mar 2001 01:01:01 -0500 (EST) (envelope-from news) From: "John GM" X-Newsgroups: comp.databases.postgresql.sql Subject: Newbie: execute function error! Date: Tue, 6 Mar 2001 00:55:05 -0500 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 22 Message-ID: <981uer$1vu3$1@news.tht.net> X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: pgsql-sql@postgresql.org X-Archive-Number: 200103/152 X-Sequence-Number: 1804 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!