Re: [HACKERS] FETCH without FROM/IN

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Meskes <meskes(at)postgreSQL(dot)org>
Cc: PostgreSQL Hacker <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] FETCH without FROM/IN
Date: 2000-01-14 07:38:04
Message-ID: 28898.947835484@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Michael Meskes <meskes(at)postgreSQL(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Adriaan Joubert 2000-01-14 07:58:41 Re: [HACKERS] [hackers]development suggestion needed
Previous Message Michael Meskes 2000-01-14 06:47:17 Re: [HACKERS] FETCH without FROM/IN