X-Original-To: pgsql-novice-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8D727D1B1E3 for ; Tue, 3 Aug 2004 00:36:06 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 58200-08 for ; Tue, 3 Aug 2004 03:35:57 +0000 (GMT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by svr1.postgresql.org (Postfix) with ESMTP id 16988D1B1C8 for ; Tue, 3 Aug 2004 00:35:55 -0300 (ADT) Received: from localhost.localdomain (c-67-162-89-61.client.comcast.net[67.162.89.61]) by comcast.net (rwcrmhc12) with ESMTP id <2004080303355401400dqntfe>; Tue, 3 Aug 2004 03:35:54 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.12.11/8.12.11) with ESMTP id i733Vfkm016841; Mon, 2 Aug 2004 22:31:42 -0500 Received: (from spike@localhost) by localhost.localdomain (8.12.11/8.12.11/Submit) id i733VfHu016838; Mon, 2 Aug 2004 22:31:41 -0500 X-Authentication-Warning: localhost.localdomain: spike set sender to mike@thegodshalls.com using -f Subject: Re: error in compiling the function -- need help !!! From: mike g Reply-To: mike@thegodshalls.com To: "Pradeepkumar, Pyatalo (IE10)" Cc: pgsql-novice@postgresql.org In-Reply-To: <77ED2BF75D59D1439F90412CC5B109740FA2CEBA@ie10-sahara.hiso.honeywell.com> References: <77ED2BF75D59D1439F90412CC5B109740FA2CEBA@ie10-sahara.hiso.honeywell.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1091503900.16772.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Mon, 02 Aug 2004 22:31:41 -0500 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.4 tagged_above=0.0 required=5.0 tests=PLING_PLING, RCVD_IN_SORBS X-Spam-Level: * X-Archive-Number: 200408/17 X-Sequence-Number: 10554 Hello, I think you need another return statement near the end. Between the ELSE and END IF so that if your code hits that point there is a Return called to end the function. HTH. Mike On Mon, 2004-08-02 at 00:33, Pradeepkumar, Pyatalo (IE10) wrote: > > Hi , > > > > I have attached the function that I am trying to run. But I am getting the > > following error - > > > > select * from pp_readenum('STAT42','PointDefinitionType') as alias; > > ERROR: syntax error at or near ";" > > CONTEXT: compile of PL/pgSQL function "pp_readenum" near line 41 > > <> > > > > I have checked the function many times....I could not figure out what > > could be wrong....any help on this. > > > > With Best Regards > > Pradeep Kumar P J > > > > ______________________________________________________________________ > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org