Re: Bizzare plpgsql error

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Bizzare plpgsql error
Дата
Msg-id 20030527155630.Q12849-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Bizzare plpgsql error  ("Jim C. Nasby" <jim@nasby.net>)
Ответы Re: Bizzare plpgsql error  ("Jim C. Nasby" <jim@nasby.net>)
Список pgsql-general
On Tue, 27 May 2003, Jim C. Nasby wrote:

> I'm getting this error trying to run a function:
>
> usps=# select process_zip4();
> WARNING:  Error occurred while executing PL/pgSQL function process_zip4
> WARNING:  line 55 at SQL statement
> ERROR:  parser: parse error at or near "$1" at character 14
>
> The relivant code is:
>
>             IF z.record_type_code = ''P'' THEN
>                 INSERT INTO po_box
>                     SELECT z4.zip4_id
>                             , ....
>
> The INSERT INTO is line 55. What makes no sense is that it works fine if
> I change the name of the table from po_box to anything else.

Do you happen to have a declared variable named po_box?  IIRC
plpgsql gets confused sometimes when things like that are done.


В списке pgsql-general по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: speed w/ OFFSET/LIMIT
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: NULL sorts as largest?