From: Boszormenyi Zoltan <zb@cybertec.at>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #6315: FETCH NEXT :next ROWS ONLY fails
Date: Thu, 01 Dec 2011 21:41:17 +0100
Message-ID: <4ED7E66D.9090701@cybertec.at> (raw)
In-Reply-To: <E1RWC0F-0000xy-Bh@wrigleys.postgresql.org>
References: <E1RWC0F-0000xy-Bh@wrigleys.postgresql.org>
2011-12-01 20:09 keltezéssel, rep.dot.nop@gmail.com írta:
> The following bug has been logged on the website:
>
> Bug reference: 6315
> Logged by: Bernhard Reutner-Fischer
> Email address: rep.dot.nop@gmail.com
> PostgreSQL version: 9.1.1
> Operating system: linux
> Description:
>
> Binding for "OFFSET :offset" works fine but binding for a "FETCH NEXT :next
> ROWS ONLY" raises:
> syntax error at or near "$2"
> SELECT * FROM foo OFFSET $1 ROWS FETCH NEXT $2 ROWS ONLY
This is not a supported syntax. Consider using
SELECT * FROM foo OFFSET $1 LIMIT $2
instead.
--
----------------------------------
Zoltán Böszörményi
Cybertec Schönig & Schönig GmbH
Gröhrmühlgasse 26
A-2700 Wiener Neustadt, Austria
Web: http://www.postgresql-support.dehttp://www.postgresql.at/
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: zb@cybertec.at
Subject: Re: BUG #6315: FETCH NEXT :next ROWS ONLY fails
In-Reply-To: <4ED7E66D.9090701@cybertec.at>
References: <E1RWC0F-0000xy-Bh@wrigleys.postgresql.org> <4ED7E66D.9090701@cybertec.at>
* 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