| От | Tom Lane |
|---|---|
| Тема | Re: pl/pgsql - code review + question |
| Дата | |
| Msg-id | 5407.995473790@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: pl/pgsql - code review + question (Gary Stainburn <gary.stainburn@ringways.co.uk>) |
| Список | pgsql-sql |
Gary Stainburn <gary.stainburn@ringways.co.uk> writes:
> My problem now is that when I include the code to handle the record
> not being there, from the pgsql chapter (section 23.2.3.3) I get the
> following errors based of the function below.
IIRC, there's an erroneous example in the 7.1 plpgsql documentation:
RAISE doesn't actually accept an expression for its string parameter,
only a literal (and only simple variables for the additional
parameters). So you need to write something like
raise exception ''Member % not found'', unitno;
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера