| От | Peter Eisentraut |
|---|---|
| Тема | Warning for undefined cursor |
| Дата | |
| Msg-id | Pine.LNX.4.56.0307281106590.2256@krusty.credativ.de обсуждение |
| Ответы |
Re: Warning for undefined cursor
Re: Warning for undefined cursor |
| Список | pgsql-hackers |
In backend/commands/portalcmds.c we have
/* FIXME: shouldn't this be an ERROR? */ ereport(WARNING,
(errcode(ERRCODE_UNDEFINED_CURSOR), errmsg("portal \"%s\" does not exist", stmt->portalname)));
The effect of this is that you can fetch from an undefined cursor and
(successfully) get zero rows plus this warning. I propose that we change
this to an error. Does anyone see a reason against this, except possibly
bugward compatibility?
--
Peter Eisentraut peter_e@gmx.net
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера