From: dodobas@geoinfo.geof.hr
To: pgsql-bugs@postgresql.org
Subject: BUG #6617: FETCH FIRST syntax accepts only constants and not parameters
Date: Thu, 26 Apr 2012 16:02:21 +0000
Message-ID: <E1SNR9B-0001iZ-OE@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 6617
Logged by: Dražen Odobašić
Email address: dodobas@geoinfo.geof.hr
PostgreSQL version: 9.1.3
Operating system: Linux 3.3.3
Description:
When tried setting FETCH FIRST parameter dynamically in RETURN QUERY EXECUTE
some_query USING param1 it resulted with a syntax error on FETCH FIRST
parameter.
Apparently, it only accepts constants so it works with ($1)
Bug example: https://pgsql.privatepaste.com/1e3ef786a5
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: dodobas@geoinfo.geof.hr
Subject: Re: BUG #6617: FETCH FIRST syntax accepts only constants and not parameters
In-Reply-To: <E1SNR9B-0001iZ-OE@wrigleys.postgresql.org>
References: <E1SNR9B-0001iZ-OE@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox