Re: cursors: SCROLL default, error messages
От
Tom Lane
Тема
Re: cursors: SCROLL default, error messages
Дата
Msg-id
15974.1048286330@sss.pgh.pa.us
Ответ на
Re: cursors: SCROLL default, error messages (Greg Stark)
Список
Дерево обсуждения
cursors: SCROLL default, error messages Neil Conway <neilc@samurai.com>
Re: cursors: SCROLL default, error messages Tom Lane <tgl@sss.pgh.pa.us>
Re: cursors: SCROLL default, error messages Neil Conway <neilc@samurai.com>
Re: cursors: SCROLL default, error messages Tom Lane <tgl@sss.pgh.pa.us>
Re: cursors: SCROLL default, error messages Greg Stark <gsstark@mit.edu>
Re: cursors: SCROLL default, error messages Tom Lane <tgl@sss.pgh.pa.us>
Re: cursors: SCROLL default, error messages Neil Conway <neilc@samurai.com>
Re: cursors: SCROLL default, error messages Tom Lane <tgl@sss.pgh.pa.us>
Re: cursors: SCROLL default, error messages Neil Conway <neilc@samurai.com>
Re: cursors: SCROLL default, error messages Tom Lane <tgl@sss.pgh.pa.us>
Greg Stark writes:
Neil Conway writes:
> Note that it won't be a noise word: if NO SCROLL is specified, an
> attempt to do a backward fetch on a non-scrollable cursor will yield an
> error.
> Does the spec *require* an error, or merely say that backward fetches aren't
> required to work?
Actually, what it says is that applications aren't allowed to issue
backwards fetches if they didn't say SCROLL. This is one of the Syntax
Rules for FETCH (in SQL92, but I imagine SQL99 is the same):
3) If the implicit or explicit is not NEXT, then the CR shall specify SCROLL.
AFAICS, our CVS-tip behavior is a reasonable superset of the spec.
We don't have the "NO SCROLL" noiseword (which was not in SQL92 anyway),
but otherwise I'm happy with what's there now.
regards, tom lane
В списке pgsql-hackers по дате отправления