Re: error on last line of function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: Matthew Nuzum <cobalt(at)bearfruit(dot)org>, Postgres General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: error on last line of function
Date: 2002-11-25 14:55:19
Message-ID: 4637.1038236119@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Richard Huxton <dev(at)archonet(dot)com> writes:
> I think the problem is you're missing the "END IF" from all the intermediate
> IFs. I don't think there actually is an "ELSEIF" structure, it's just an ELSE
> followed by an IF, so the IF needs to be concluded as normal.

Recent releases (at least 7.2 and later) have an ELSIF abbrevation too.
See
http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/plpgsql-control-structures.html

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message PostgreSQL Manager Team 2002-11-25 14:56:52 ANN: EMS PostgreSQL Manager 0.95 released!
Previous Message Shridhar Daithankar 2002-11-25 14:30:14 Re: performanceboost with PostgreSQL