Re: problem with view/function after upgrade to 7.2

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: juerg(dot)rietmann(at)pup(dot)ch
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: problem with view/function after upgrade to 7.2
Date: 2002-02-12 15:08:53
Message-ID: 21427.1013526533@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

juerg(dot)rietmann(at)pup(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2002-02-12 15:16:19 Re: stopping "wal"
Previous Message Florian Helmberger 2002-02-12 11:10:43 FW: Where can I get PostGRESQL ODBC Driver