Re: move 0 behaviour

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: move 0 behaviour
Date: 2002-11-02 15:06:35
Message-ID: 21151.1036249595@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-jdbc

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Tom Lane wrote:
>> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>>> I thought about that, but I need to fail if the cursor name is invalid.
>>
>> What has that got to do with it?

> If I put the 'return' for 0 MOVE/FETCH in utility.c's FetchStmt code, I
> will not get the checks for invalid cursor names, and I will not get the
> proper return tag.

Oh, I see. Yeah, you're probably right, we have to change the calling
convention for PerformPortalFetch.

BTW, portalcmds.h also contains a comment that would need to be fixed.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2002-11-02 15:09:28 Re: Can't import databases with pg_dump. Why?
Previous Message Tom Lane 2002-11-02 14:51:02 Re: problems with building recent cvs snaphots

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-11-02 15:14:20 Re: [GENERAL] What user to defaults execute as?
Previous Message Tom Lane 2002-11-02 14:36:42 Re: Optimizer Question/Suggestion

Browse pgsql-jdbc by date

  From Date Subject
Next Message am 2002-11-02 19:33:43 Re: Cursors: getting the number of tuples; moving backwards
Previous Message Bruce Momjian 2002-11-02 05:41:28 Re: move 0 behaviour