Re: move 0 behaviour

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(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-03 01:21:11
Message-ID: 200211030121.gA31LBd00398@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-jdbc

Tom Lane wrote:
> 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.

Updated.

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dan Ostrowski 2002-11-03 17:47:48 Couple quick questions....
Previous Message miguel angel rojas aquino 2002-11-02 22:25:53 OT : timestamps and jbuilder (help, please)

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-11-03 01:29:42 Re: missing const it PQexscapeBytea/PQunescapeBytea in 7.3b3
Previous Message Tommi Mäkitalo 2002-11-02 22:44:57 missing const it PQexscapeBytea/PQunescapeBytea in 7.3b3

Browse pgsql-jdbc by date

  From Date Subject
Next Message Timothy Reaves 2002-11-03 22:20:18 A result was returned by the statement, when none was expected.
Previous Message Antonie C Malan 2002-11-02 23:53:54 Question arising from a post