bugfix for cursor arguments in named notation

From: Yeb Havinga <yebhavinga(at)gmail(dot)com>
To: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: bugfix for cursor arguments in named notation
Date: 2012-04-04 09:47:43
Message-ID: 4F7C18BF.60802@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Using a cursor argument name equal to another plpgsql variable results
in the error:
cursor .. has no argument named ""

The attached patch fixes that.

Instead of solving the issue like is done in the patch, another way
would be to expose internal_yylex() so that could be used instead of
yylex() by read_cursor_args when reading the argument name, and would
always return the argument name in yylval.str.

--
Yeb Havinga
http://www.mgrid.net/
Mastering Medical Data

Attachment Content-Type Size
0001-Fix-cursor-has-no-argument-named-error.patch text/x-patch 0 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joachim Wieland 2012-04-04 10:17:32 Re: patch for parallel pg_dump
Previous Message Joachim Wieland 2012-04-04 09:03:01 Re: parallel pg_dump