Re: plpgsql on 8.0b4 bug? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: plpgsql on 8.0b4 bug?
Date
Msg-id 17200.1100794481@sss.pgh.pa.us
Whole thread Raw
In response to plpgsql on 8.0b4 bug?  (James Robinson <jlrobins@socialserve.com>)
Responses Re: plpgsql on 8.0b4 bug?  (James Robinson <jlrobins@socialserve.com>)
List pgsql-hackers
James Robinson <jlrobins@socialserve.com> writes:
> 7.4.6 results:
> xs2 /tmp> psql ssc_sav < pets.sql
> BEGIN
> ALTER TABLE
> CREATE FUNCTION
> ERROR:  syntax error at or near "ELSEIF" at character 1
> CONTEXT:  PL/pgSQL function "fix_pets" line 16 at SQL statement

Um ... I get the "no code determined" message in 7.4.6 too, and indeed
in every version of plpgsql (ok, I didn't try before 7.2).  Given the
way plpgsql works, it'd be hard to make it do anything else.  It thinks
that ELSEIF (or any other unrecognized keyword) is a SQL command keyword.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: invalid page header
Next
From: James Robinson
Date:
Subject: Re: plpgsql on 8.0b4 bug?