| От | Tom Lane |
|---|---|
| Тема | Re: Return void error in PG 8.1.0 |
| Дата | |
| Msg-id | 1105.1134159711@sss.pgh.pa.us обсуждение |
| Ответ на | Return void error in PG 8.1.0 ("Walker, Jed S" <Jed_Walker@cable.comcast.com>) |
| Список | pgsql-novice |
"Walker, Jed S" <Jed_Walker@cable.comcast.com> writes:
> We are testing our system using PG 8.1.0 instead of 8.0.4. When I
> recreated functions I discovered that the ones that have "returns void"
> and do return void all failed with the following error (when creating
> them):
> ERROR: RETURN cannot have a parameter in function returning void at or
> near "void" at character 357
> Is this a known issue or change to PG? Is there a way to still return
> void in 8.1.0?
"return void" was never correct; the correct and documented thing is
just "return"; but older versions of plpgsql were laxer about complaining
about junk in a RETURN that should have no parameter.
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера