Re: plpgsql on 8.0b4 bug?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: plpgsql on 8.0b4 bug?
Дата
Msg-id 17200.1100794481@sss.pgh.pa.us
обсуждение исходный текст
Ответ на plpgsql on 8.0b4 bug?  (James Robinson <jlrobins@socialserve.com>)
Ответы Re: plpgsql on 8.0b4 bug?  (James Robinson <jlrobins@socialserve.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: invalid page header
Следующее
От: James Robinson
Дата:
Сообщение: Re: plpgsql on 8.0b4 bug?