Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1CF9GE58128 for ; Tue, 12 Feb 2002 10:09:16 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g1CF8rf21430; Tue, 12 Feb 2002 10:08:53 -0500 (EST) To: juerg.rietmann@pup.ch cc: pgsql-admin@postgresql.org Subject: Re: problem with view/function after upgrade to 7.2 In-reply-to: References: Comments: In-reply-to juerg.rietmann@pup.ch message dated "Tue, 12 Feb 2002 08:52:01 +0100" Date: Tue, 12 Feb 2002 10:08:53 -0500 Message-ID: <21427.1013526533@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200202/149 X-Sequence-Number: 3306 juerg.rietmann@pup.ch writes: > Except the following function/view is not working. I get an error, saying : > Missing LOOP at end of SQL expression > FOR rec IN SELECT z_u_umfang FROM zylinder_umfang WHERE z_u_typ = $1; > list := list || text(rec.z_u_umfang) || '',''; > END LOOP; Should be FOR record | row IN select_query LOOP statements END LOOP; (copied and pasted from the plpgsql documentation...) regards, tom lane