| От | Tom Lane |
|---|---|
| Тема | Re: [HACKERS] FETCH without FROM/IN |
| Дата | |
| Msg-id | 28898.947835484@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [HACKERS] FETCH without FROM/IN (Michael Meskes <meskes@postgreSQL.org>) |
| Список | pgsql-hackers |
Michael Meskes <meskes@postgreSQL.org> writes:
>> FETCH NEXT;
>>
>> If both FROM and portal_name were optional, this statement would
>> actually be ambiguous: is it FETCH NEXT from the default portal,
> Do we have a default portal?
Darn if I know, but the current gram.y thinks so. If I try it
without any preparation, I get:
regression=# fetch;
NOTICE: PerformPortalFetch: blank portal unsupported
FETCH
but maybe with some magic DECLARE beforehand, it'd work?
Anyone know?
Since the SQL92 spec clearly requires a cursor name to be provided,
I'd be willing to see us remove the option of defaulting the cursor
name. Is there anyone out there who knows what it does and wants
to argue we should keep it?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера