X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A11AF5398F for ; Wed, 27 Apr 2005 15:00:22 -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 77191-03 for ; Wed, 27 Apr 2005 18:00:14 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 2C3A353711 for ; Wed, 27 Apr 2005 15:00:10 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j3RI04IH042604 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 27 Apr 2005 12:00:07 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j3RI0458075683; Wed, 27 Apr 2005 12:00:04 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j3RI04hv075682; Wed, 27 Apr 2005 12:00:04 -0600 (MDT) (envelope-from mfuhr) Date: Wed, 27 Apr 2005 12:00:04 -0600 From: Michael Fuhr To: Rodrigo Carvalhaes Cc: pgsql-sql@postgresql.org Subject: Re: SYNTAX ERROR ON FOR... LOOP Message-ID: <20050427180004.GA68083@winnie.fuhr.org> References: <426FCE69.6070805@carvalhaes.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <426FCE69.6070805@carvalhaes.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.108 tagged_above=0 required=5 tests=AWL, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200504/391 X-Sequence-Number: 21284 On Wed, Apr 27, 2005 at 02:39:53PM -0300, Rodrigo Carvalhaes wrote: > > I am trying to make an IF / ELSE / END IF inside of a FOR ... LOOP but I > am getting syntax error on this contol structure... [snip] > IF records.is_customer IS FALSE THEN > vstrupdate := vstrupdate || $$ IS true $$; > ELSE > vstrupdate := vstrupdate || $$ IS false $$; > ENDIF; The above should be "END IF" (with a space). -- Michael Fuhr http://www.fuhr.org/~mfuhr/