Re: RAISE concatination/variables in plpgsql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: RAISE concatination/variables in plpgsql
Дата
Msg-id 21831.987703688@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RAISE concatination/variables in plpgsql  ("Henshall, Stuart - WCP" <SHenshall@westcountrypublications.co.uk>)
Ответы Re: RAISE concatination/variables in plpgsql  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-bugs
"Henshall, Stuart - WCP" <SHenshall@westcountrypublications.co.uk> writes:
> In the plpgsql docs it has the following example:
> RAISE NOTICE ''Id number '' || key || '' not found!'';
> When I put a function round this statement it gives a compile error at the
> |.
> Also when fiddling if I put a variable first it complains about that
> variable (eg key || '' val.....'')

Looking at the plpgsql code, it's clear that what's actually implemented
is
    RAISE level string-literal [ , variable [ , variable [ ... ] ]
which is pretty bletcherous; seems like it should accept a list of
expressions instead.  But for 7.1, I guess this is a documentation bug
rather than something to change in the code.

            regards, tom lane

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

Предыдущее
От: Lamar Owen
Дата:
Сообщение: Re: startup scripts don't function properly
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: startup scripts don't function properly