Re: Bug with cursor declaration in plpgsql? (Repost)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Michael Paesold" <mpaesold(at)gmx(dot)at>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Bug with cursor declaration in plpgsql? (Repost)
Date: 2005-09-14 13:48:19
Message-ID: 3484.1126705699@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Michael Paesold" <mpaesold(at)gmx(dot)at> writes:
> I get:
> ERROR: syntax error at or near "," at character 237
> LINE 9: credit_cursor CURSOR (p_account integer, p_reference integ...

> The same function works perfectly well in 7.4.8 and 8.0.3.
> A bug?

Yeah, looks like Neil accidentally dropped the comma from
decl_cursor_arglist when he whacked that code around to use Lists
instead of handmade arrays. Thanks for catching it.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2005-09-14 13:52:47 parameterized fetch
Previous Message Stephen Frost 2005-09-14 13:39:43 Re: 8.1 system info / admin functions