Re: BUG #6315: FETCH NEXT :next ROWS ONLY fails

From: Boszormenyi Zoltan <zb(at)cybertec(dot)at>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6315: FETCH NEXT :next ROWS ONLY fails
Date: 2011-12-01 20:41:17
Message-ID: 4ED7E66D.9090701@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

2011-12-01 20:09 keltezéssel, rep(dot)dot(dot)nop(at)gmail(dot)com írta:
> The following bug has been logged on the website:
>
> Bug reference: 6315
> Logged by: Bernhard Reutner-Fischer
> Email address: rep(dot)dot(dot)nop(at)gmail(dot)com
> PostgreSQL version: 9.1.1
> Operating system: linux
> Description:
>
> Binding for &quot;OFFSET :offset&quot; works fine but binding for a &quot;FETCH NEXT :next
> ROWS ONLY&quot; raises:
> syntax error at or near &quot;$2&quot;
> 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.de
http://www.postgresql.at/

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2011-12-01 21:32:58 Re: BUG #6315: FETCH NEXT :next ROWS ONLY fails
Previous Message Robert Haas 2011-12-01 20:11:42 Re: Postgre Cross compilation for coldfire processor.