Re: Warning for undefined cursor

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Warning for undefined cursor
Дата
Msg-id 200307302159.h6ULxwq14354@candle.pha.pa.us
обсуждение исходный текст
Ответ на Warning for undefined cursor  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter, you have brought up some good items recently.  Are you going to
handle them or do you want them added to the TODO list or 7.4 open items
list.


---------------------------------------------------------------------------

Peter Eisentraut wrote:
> 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
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
>                http://www.postgresql.org/docs/faqs/FAQ.html
> 

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Some macros for error field codes
Следующее
От: Tom Lane
Дата:
Сообщение: Any unapplied patches out there?